S&S Tutorial - Editing Vanilla Tables

Story and Stratagem (S&S) Editor Forum

Moderator: Vic

Post Reply
Akrakorn
Posts: 100
Joined: Mon Oct 19, 2020 8:58 am

S&S Tutorial - Editing Vanilla Tables

Post by Akrakorn »

I'm reposting my tutorial on how to modify existing vanilla tables in the proper section.

https://docs.google.com/document/d/1CwP ... sp=sharing
User avatar
Vic
Posts: 9636
Joined: Mon May 17, 2004 2:17 pm
Contact:

RE: S&S Tutorial - Editing Vanilla Tables

Post by Vic »

great walkthrough! and exactly as I intended it to be used.
Visit www.vrdesigns.net for the latest news, polls, screenshots and blogs on Shadow Empire, Decisive Campaigns and Advanced Tactics
Akrakorn
Posts: 100
Joined: Mon Oct 19, 2020 8:58 am

RE: S&S Tutorial - Editing Vanilla Tables

Post by Akrakorn »

I'm glad you like it, Vic. Hopefully it encourages people to try out the S&S Editor.
User avatar
Pymous
Posts: 203
Joined: Thu Apr 01, 2010 7:12 am
Contact:

RE: S&S Tutorial - Editing Vanilla Tables

Post by Pymous »

LIke I said this is awesome!
With tutorials like this, you will make SE modding come to life.
Please continue :D

PS: Tutorials/guide (step by step) like:
"How to make an event"
"How to create a Stratagem Card"

would be great ^^
[Mod]Shadow Stratagems Artpack for Shadow Empire game.
User avatar
mroyer
Posts: 1260
Joined: Sun Mar 06, 2016 12:27 pm

RE: S&S Tutorial - Editing Vanilla Tables

Post by mroyer »

Thanks for taking the time to document this, Akrakorn. I appreciate that very much.

There's a (probably many) gap in my understanding that perhaps someone can help with.

When you load a modified .csv table into one of the generically named tables (e.g. "Modify existing table") in the S&S editor...
(1) how does it get associated with the original table that was modified? i.e., how does the game-engine know what the newly loaded data is?
(2) what does a modder need to do if (s)he needs two+ tables using the same "Modify existing table" columns-side?

-Mark R.
User avatar
Catasteroid
Posts: 25
Joined: Sat Oct 23, 2021 6:42 pm

RE: S&S Tutorial - Editing Vanilla Tables

Post by Catasteroid »

ORIGINAL: mroyer
When you load a modified .csv table into one of the generically named tables (e.g. "Modify existing table") in the S&S editor...
(1) how does it get associated with the original table that was modified? i.e., how does the game-engine know what the newly loaded data is?
(2) what does a modder need to do if (s)he needs two+ tables using the same "Modify existing table" columns-side?
Firstly you'll want to start by making sure it's a csv mod table exported from the debug screen in-game, exporting mod csv files includes instructions for the first few columns of the Modify existing table, here is the results of exporting my mod's perks using the normal csv export using the debug screen:

imgur(DOT)com/oQOW3hd.png

Note that the mod csv output has additional six columns and values (some of which are blank) between the tabs in the latter, those are specifically for Modify existing table use, the first value is a comment to remind yourself (or a reader) of something if you like. The second is the operation type, a value that is either 1 which sets a single specific value on a specific row and column of a specific table, 2 which sets the values of an entire row on a specific table, or 3 which adds a new row to the end of the table and sets the row's values to those provided. The third value is the name of the library, in this case it's that of my own mod, CMod, but it could be SE_Asset, SE_Perks, SE_Linguistic, SE_Airforce or any other internal library. The fourth value is the specific sub-library/table number which in this case is 380 or hex perks. The fifth and sixth values are the row and column number for use with operation types 1 and 2 but I have the column number as -1 here as it's not used for operation type 2 and operation type 3 doesn't use either. All the data forward of that is the same as in the normal csv, note that mod csv exports will always export with operation type 2 and if you're adding new content you'll probably want to use operation type 3 and not bother with using the row/column number fields.

You can address multiple different sub-libraries/tables using the same Modify existing table library, it simply is a list of changes to make and you can use just one or two of the columns or all of them if you like, it makes no difference. It can often even be helpful having the changes for multiple tables above and below each other for readability purposes.
User avatar
mroyer
Posts: 1260
Joined: Sun Mar 06, 2016 12:27 pm

RE: S&S Tutorial - Editing Vanilla Tables

Post by mroyer »

Thanks Catasteroid. If you want to, send me the unpostable element and I will post it here for now.
-Mark R.
Post Reply

Return to “Story and Stratagem (S&S) Editor”