![]() |
#1 |
Veteran
Join Date: Apr 2009
Location: Pisa / DL0
Posts: 1,017
![]() |
[ToME2] JSON automatizer files?
If I understand correctly, the automatizer (autosquelch) files have been moved to a different JSON-based format in the ToME master. Are there any sample files around, or a method to convert the old XML-based ones?
I don't want to start writing from scratch all the obvious rules like "squelch all potions of sleep and (+0,+0) swords"...
__________________
Dive fast, die young, leave a high-CHA corpse. -- You read a scroll labeled 'lol gtfo' of Teleport Level. |
![]() |
![]() |
![]() |
#2 |
Knight
Join Date: Jan 2017
Posts: 932
![]() |
First hit on google for 'xml to json converter' leads here:
http://www.utilities-online.info/xmltojson/ I'm sure there'll be some cleanup to do but looks like the bulk of the work can be done automatically |
![]() |
![]() |
![]() |
#3 |
Veteran
Join Date: Apr 2009
Location: Pisa / DL0
Posts: 1,017
![]() |
It looks like the format has changed, it's not as simple as running an online converter:
Code:
<rule module="ToME" name="SquelchBad" type="destroy"> <name>Potion of Sleep</name> </rule> Code:
[ { "action": "destroy", "condition": { "name": "Potion of Sleep", "type": "name" }, "module": "ToME", "name": "destroy" } ]
__________________
Dive fast, die young, leave a high-CHA corpse. -- You read a scroll labeled 'lol gtfo' of Teleport Level. Last edited by fph; May 15, 2017 at 00:52. |
![]() |
![]() |
![]() |
#4 | ||
Veteran
Join Date: Jun 2007
Posts: 1,391
![]() |
Quote:
Quote:
Well, there's also quite a big amount of completely junk items or items that you might find interesting in one or two games, but will basically never want/need to look at again. (Some of the Artifact Lore "books" come to mind. Maybe I should just remove some of this stuff... I'm guessing that nobody actually ever reads it.) Just curious: Do you use any of the "only when level is higher than 30" or "class is X" stuff? I've been planning on moving to a much more squelch-like system which wouldn't actually destroy items, but doing that also really necessitates changing drop rates, which necessitates rebalancing egos/randarts (probably) which... (Aka. "it's complicated".) |
||
![]() |
![]() |
![]() |
#5 |
Veteran
Join Date: Apr 2009
Location: Pisa / DL0
Posts: 1,017
![]() |
It's 3-4 keypresses, but the UI to do it looks quite messy to me, especially when there are many quality options such as for weapons/armor. How do I squelch all "good" boots excluding boots of speed, for instance? Or: if I change my mind, how do I un-squelch all good weapons? How do I squelch scrolls of darkness, including fireproof ones? And so on...
And if someone isn't familiar with the whole type/subtype definition, that's another tricky part to figure out. I don't use level/class conditions at the moment, but it looks like a useful construct for a "global" .atm file to use on multiple characters (which doesn't exist now).
__________________
Dive fast, die young, leave a high-CHA corpse. -- You read a scroll labeled 'lol gtfo' of Teleport Level. |
![]() |
![]() |
![]() |
#6 | |||
Veteran
Join Date: Jun 2007
Posts: 1,391
![]() |
Quote:
By UI, I really just mean the "press k.... then $.... then RETURN[1] then T or F".... and remember to then go into the automatizer and press "s" if you actually want your changes saved. It's utterly ludicrous compared to the Vanilla Angband system were it's "press k" (and perhaps "y" to confirm?) and everything gets saved along with your character automatically. Quote:
Quote:
I could see something like the poscheng/heng/entro system working a little better, but that's also pretty arcane IMO. FWIW, I think the current interface is awful. [1] Because the instructions are so long that you'll get a "-more-" prompt. I was I were kidding. |
|||
![]() |
![]() |
![]() |
#7 |
Veteran
Join Date: Apr 2009
Location: Pisa / DL0
Posts: 1,017
![]() |
I agree completely with you -- UI is the main problem, and V's solution is one of the best ones I have seen.
(In the meantime, I have kind-of converted to JSON a sample automat.atm file I have found on the internet, and I can put it online for the competition if people wish.)
__________________
Dive fast, die young, leave a high-CHA corpse. -- You read a scroll labeled 'lol gtfo' of Teleport Level. |
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
tome2-ah: pressing a wrong key in automizer config crashes the game | Therem Harth | Variants | 6 | December 1, 2014 17:21 |
tome2-ah: instant pseudo-ID only works with automatic item pickup | Therem Harth | Variants | 1 | November 29, 2014 17:52 |
tome2-ah: integer overflow in black market? | Therem Harth | Variants | 5 | September 2, 2014 00:36 |
ToME2.3.5 question | Estie | ToME | 0 | May 7, 2014 10:36 |
Updating help files | fizzix | Vanilla | 23 | August 3, 2010 05:19 |