Ahar, release!
At the moment, it can't do anything to the raws, I haven't worked on that yet since this rewrite. The code will be easy to transfer from the previous work, though.
Please read the comments in the code file to get an idea of what's going on.
Download
Conditional statements and loops are probably next. Shouldn't take long, I've already got the groundwork implemented in the parsing loop.I figure now's as good a time as any to announce this. RawScript is a program that functions similarly to UristMod, but with several improvements.
What it's got so far:
+ Intelligent parsing of the raw files and efficient version-independant recognition of tokens and object types
+ Easy, comprehendable syntax for choosing what objects in the raws you want your changes to affect
+ Removing tags from the objects, appending them to their ends, and changing the arguments of existing ones
+ Conditional modification to aid inter-mod compatibility
What I'll be adding before I release it:
- Apply changes only to certain castes
- More flexible object selection capabilities
- Create and delete entire objects from the raws
- Write thorough documentation
- Record changes installed to a separate file to allow streamlined
uninstallation of modifications.Here's an example of a functional* program in RawScript
Include OBJECT:CREATURE
Select TOKEN:PET_EXOTIC
Remove PET_EXOTIC
Append PET
Exclude *
Include OBJECT:CREATURE
Select TOKEN:MOUNT_EXOTIC
Remove MOUNT_EXOTIC
Append MOUNT
*minus a couple bugs, and it probably wouldn't work too well considering I haven't finished caste support just yet