Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > ToME

Reply
 
Thread Tools Display Modes
Old May 14, 2017, 13:49   #1
fph
Knight
 
Join Date: Apr 2009
Location: Berlin / Italy
Posts: 538
fph is on a distinguished road
[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.
fph is offline   Reply With Quote
Old May 14, 2017, 15:18   #2
Gwarl
Swordsman
 
Join Date: Jan 2017
Posts: 286
Gwarl is on a distinguished road
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
Gwarl is offline   Reply With Quote
Old May 14, 2017, 23:26   #3
fph
Knight
 
Join Date: Apr 2009
Location: Berlin / Italy
Posts: 538
fph is on a distinguished road
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"
  }
]
And it looks like the new format has ninja documentation...
__________________
Dive fast, die young, leave a high-CHA corpse.
--
You read a scroll labeled 'lol gtfo' of Teleport Level.

Last edited by fph; May 14, 2017 at 23:52.
fph is offline   Reply With Quote
Old May 24, 2017, 17:38   #4
AnonymousHero
Veteran
 
AnonymousHero's Avatar
 
Join Date: Jun 2007
Posts: 1,263
AnonymousHero is on a distinguished road
Quote:
Originally Posted by fph View Post
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?
No conversion, sorry.

Quote:
Originally Posted by fph View Post
I don't want to start writing from scratch all the obvious rules like "squelch all potions of sleep and (+0,+0) swords"...
I feel a huge portion of the pain of this is due to the UI for actually destroying items. It's what 3-4 keypresses just to destroy + record squelch?

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".)
AnonymousHero is offline   Reply With Quote
Old May 24, 2017, 18:04   #5
fph
Knight
 
Join Date: Apr 2009
Location: Berlin / Italy
Posts: 538
fph is on a distinguished road
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.
fph is offline   Reply With Quote
Old May 24, 2017, 18:17   #6
AnonymousHero
Veteran
 
AnonymousHero's Avatar
 
Join Date: Jun 2007
Posts: 1,263
AnonymousHero is on a distinguished road
Quote:
Originally Posted by fph View Post
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? Do you mean
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...
Well, presumably boots of speed would be classified as "Excellent" (or whatever the classification is). Unsquelching would be similar to current Vanilla.

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:
Originally Posted by fph View Post
And if someone isn't familiar with the whole type/subtype definition, that's another tricky part to figure out.
That bit really should go. If the squelch ("press k") is as quick to do as in vanilla, I could happily live with only being able to squelching on specific TVAL/SVAL combos. (There's very little logic to the TVALs, usually.)

Quote:
Originally Posted by fph View Post
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).
It would techinically be useful, but I've never ever bothered using it -- it was way too much work to set up -- and AFAICT very few people ever did. (So, basically, looks like a <1% feature which isn't worth mucking up the common case with.)

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.
AnonymousHero is offline   Reply With Quote
Old May 24, 2017, 18:23   #7
fph
Knight
 
Join Date: Apr 2009
Location: Berlin / Italy
Posts: 538
fph is on a distinguished road
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.
fph is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
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 16:21
tome2-ah: instant pseudo-ID only works with automatic item pickup Therem Harth Variants 1 November 29, 2014 16:52
tome2-ah: integer overflow in black market? Therem Harth Variants 5 September 1, 2014 23:36
ToME2.3.5 question Estie ToME 0 May 7, 2014 09:36
Updating help files fizzix Vanilla 23 August 3, 2010 04:19


All times are GMT +1. The time now is 09:20.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.