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: 521
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
Apprentice
 
Join Date: Jan 2017
Posts: 94
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 online now   Reply With Quote
Old May 14, 2017, 23:26   #3
fph
Knight
 
Join Date: Apr 2009
Location: Berlin / Italy
Posts: 521
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
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 12:55.


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