Go Back   Savage 2: A Tortured Soul Forum > Savage 2 Modding > Documentation

Notices

Documentation Post useful tutorials and other informative material.

Reply
 
Thread Tools Display Modes
Old 08-18-2010, 10:10 PM   #1
xorc

 
Join Date: Mar 2009
Posts: 56
Thanks: 1
Thanked 0 Times in 0 Posts
Default Linux modding tools

This will give the ability to edit scripts/triggers on linux without the Savage2 Editor or Stanz Editor. It gives you plain text files to edit so you can use any favorite editor out there.

I don't know if they already existed but I made 3 commands which make my modding life alot easier on linux.

First the link:
http://xorc.winex.org/s2toolchain/
http://xorc.winex.org/s2toolchain/README (README)

What this does is the following:
Gives one binary to compress/decompress-es .s2z and decompiles the triggerlist into seperate files.
Symlinks new compiled projects automaticly to ~/.savage2/game/maps/

This gives you the ability to quickly add and delete triggers also, by simply making the file or deleting one, and running s2z again.


How s2z works is with a series of commandline tools
- zip
- s2t "Compiles/decompiles triggerlist"
- s2l "Symlinks a s2z to ~/.savage2/game/maps/"

Usage:

$ s2z filename.s2z
- extracts the normal contents to directory ./filename/
- decompiles triggerlist to ./filename/triggers/

$ s2z filename
- compiles ./filename/triggers/ into triggerlist
- zips filename back to filename.s2z
- calls s2l to symlink it to your savage2 homedir game/maps/ directory

Note:
This is the first basic working version so I could easily modify map scripts without too much hassle, functionality will be added whenever I feel is necessary or you guys have an idea for it, informational output will be added soon.
__________________
xorc's Savage2 in a nutshell

Last edited by xorc; 09-27-2010 at 10:57 AM.
xorc is offline   Reply With Quote
Old 08-18-2010, 10:27 PM   #2
Sly_Squash

Sly_Squash's Avatar
 
Join Date: May 2008
Location: Anywhere that needs justice
Posts: 5,569
Thanks: 70
Thanked 238 Times in 176 Posts
Default

__________________
For Sly From Stony:


Quote:
Originally Posted by Bodom_Child View Post
S2games helping out:

Sly_Squash is offline   Reply With Quote
Old 08-19-2010, 12:38 PM   #3
DarkBox

DarkBox's Avatar
 
Join Date: Feb 2010
Location: Tea-bagging you.
Posts: 88
Thanks: 1
Thanked 7 Times in 5 Posts
Default

yaaaay
__________________

I just had to. I can haz signature?
DarkBox is offline   Reply With Quote
Old 08-19-2010, 12:57 PM   #4
Old55

Old55's Avatar
 
Join Date: Jun 2009
Posts: 2,586
Thanks: 14
Thanked 428 Times in 209 Posts
Default

Very nice. One thing I actually would like, would be to have a version of triggerlist in which the triggers are editable, but not separated. There are times I have found that being able to search all the triggers to see what params have been used to be helpful.
__________________
Old55 is offline   Reply With Quote
Old 08-19-2010, 02:50 PM   #5
xorc

 
Join Date: Mar 2009
Posts: 56
Thanks: 1
Thanked 0 Times in 0 Posts
Default

You can search through all files with forexample:
grep "string" *
or
open the files in a text editor/IDE and do 'find in all files',


but I will put a modified version online for you tonight which just holds everything in triggerlist, although I think it will be a bit messy
__________________
xorc's Savage2 in a nutshell
xorc is offline   Reply With Quote
Old 08-19-2010, 06:10 PM   #6
Sly_Squash

Sly_Squash's Avatar
 
Join Date: May 2008
Location: Anywhere that needs justice
Posts: 5,569
Thanks: 70
Thanked 238 Times in 176 Posts
Default

I need this on my desk by the end of the day.
__________________
For Sly From Stony:


Quote:
Originally Posted by Bodom_Child View Post
S2games helping out:

Sly_Squash is offline   Reply With Quote
Old 08-20-2010, 11:49 AM   #7
Ecliptik

 
Join Date: Feb 2009
Posts: 238
Thanks: 0
Thanked 0 Times in 0 Posts
Default

http://dev.itrends.eu/%7Exorc/s2tool...le/triggerlist <--- Trigger list. :O
__________________

Proud Backstabber since February 2009.
Ecliptik is offline   Reply With Quote
Old 08-21-2010, 08:29 PM   #8
winex

winex's Avatar
 
Join Date: Sep 2009
Location: Moscow, Russia
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Default

you forgot to mention someone, didn't you? :P
or it isn't based on my script?
__________________
in code we trust...
winex is offline   Reply With Quote
Old 08-22-2010, 06:29 AM   #9
xorc

 
Join Date: Mar 2009
Posts: 56
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by winex View Post
you forgot to mention someone, didn't you? :P
or it isn't based on my script?
I honestly forgot you made such scripts, while making this
__________________
xorc's Savage2 in a nutshell
xorc is offline   Reply With Quote
Old 09-27-2010, 10:32 AM   #10
badcom16370

badcom16370's Avatar
 
Join Date: Mar 2009
Posts: 121
Thanks: 0
Thanked 0 Times in 0 Posts
Default

http://dev.itrends.eu/~xorc/s2toolchain/
http://dev.itrends.eu/~xorc/s2toolchain/README
Broken links.
__________________
Quote:
Originally Posted by neno View Post
One of rare vets I have seen that aren't emotionally connected to their SF.
badcom16370 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



All times are GMT. The time now is 03:35 PM.