Nexus Skirmisher
Nexus Modding => Modding Tools => Topic started by: Arparso on February 22, 2010, 08:30:46
-
Editing the tacticstypes.ini to insert new or modify existing ships and devices can get quite cumbersome, if you're creating a whole mod from scratch. The mod tools actually include an Excel spreadsheet, which is supposed to automate tacticstypes.ini-creation using a macro, but if you're using OpenOffice, that won't work at all.
So I wrote my own version of this script and spreadsheet being compatible to OpenOffice.org Calc. That enables me to have a much better overview over all my shipclasses and devicetypes, making changes to all of them much easier while not having to manually code my own tacticstypes.ini. Maybe it'll prove useful to other modders as well, so I'm sharing it here with you.
Usage instructions:
- extract the tacticstypes.ods file to your mod directory into the _work\tables-subfolder and make a backup of your original tacticstypes.ini (!)
- make your changes to the spreadsheet inserting your own shipclasses, devicetypes, shiptypes, etc.
- save it
- run the "Main" macro in tacticstypes.ods->Standard->ExportToIni
- repeat steps 2 - 4 until you're happy with your tacticstypes.ini
Important! The included macro script WILL override your original tacticstypes.ini, so don't forget to make a backup in case things don't work out! Don't blame me, if you lose your stuff, I've warned you!
I've also included a spreadsheet for Nexus' singleplayer tacticstypes.ini as an example. It's more or less a direct copy of Nexus' Excel spreadsheet with my modified macro script attached.
I'd suggesst adding the macro to your toolbar or assigning it a hotkey to avoid having to go through the macro submenu each time.
-
a little mistake in here, the location of tacticstypes.ods file should be _work\params
-
Doesn't really matter, though - the script works nonetheless ;)
-
well it didn't worked for me, until I changed name of folder :)
Btw, it would be nice if someone would create such a file to efx.ini ;) I'm too lazy to do it myself :D
-
I'm already working on it. See the attachment for the version I currently use. I didn't have time to test it thoroughly, but it appears to be working just fine right now. It doesn't have a fancy progress bar like the tacticstypes macro, though. ;)
Don't forget to backup your existing efx.ini!
well it didn't worked for me, until I changed name of folder :)
That's odd, cause mine works perfectly fine in _work\tables ... the name of the folder should be irrellevant - you'll just need to put it two subfolders "deep" into the mod's folder or it won't save the .ini at the correct location.
/edit:
Uploaded newer version of the efx.ods including a progress bar.
-
<3 You're awesome, Arparso. Thanks!
Was just looking for a solution to the OpenOffice issue :)
I DID notice something quite annoying though. For some reason, when inputting quotation marks, it always shows up as some other kind of symbol, instead of the "quote marks". :(
I find that I have to input a letter, then put the quotation mark, then erase the letter in front of it.
-
Hmm, that's odd. Do you have typographical quotation marks enabled? If so, try disabling it under Tools->Autocorrect->Typographical quotes (or whatever its called in your OpenOffice-version) and uncheck "Replace".
-
Sweet, that was it man, thanks :)
-
Hey Arparso, the EFX document doesn't seem to work via macro export :(
-
Really? Worked fine for me. Make sure you're using the right macro (from efx.ods->Module1->Main). It doesn't have a progress bar, so you don't actually see it working, but it creates the efx.ini just fine.
Actually I just uploaded an updated version in the post above, which I'm currently using for the FreeSpace mod. It also includes a progress bar, just like the tacticstypes macro.
Also keep in mind, that it creates the efx.ini, not the mod_efx.ini. It basically overwrites ALL of Nexus' effects, so you can't rely on any of them anymore. ;)
-
it creates the efx.ini, not the mod_efx.ini
Ahhh ha!
That's where it was coming from, haha. I was wondering what was going on there. I was crashing from EFX errors after I exported an I was like "where the hell did that EFX.INI come from???" since I was using the mod_efx.ini. thanks for the heads up :) I'll be sure to rename it once I'm done, hah.
-
I'll be sure to rename it once I'm done, hah.
I suppose you could also rename Nexus' default efx.ini to mod_efx.ini and have your mod's custom effects in efx.ini loaded first.
-
True, yeah. Either way is fine by me :D
I just wish I could get rid of that frakkin' "combustion" particle! Garrrrr :)
-
The sp version's macro doesn't work. I can't find tachics type file.
Also, how do you change the color of row?
-
The macro creates a tacticstypes.ini at:
..\..\universe\tactics\tacticstypes.ini
This path is relative to where your "tacticstypes_vanillaSP.ods" file is saved. So if you were to save the .ods in a "_work\tables" subfolder of your mod (or vanilla nexus installation), the tacticstypes.ini gets saved to the correct location automatically... of course while overwriting the one that's already there, so remember to make a backup before that!
Changing the color of a row? Select the row(s) and change the background color using the paint bucket button in your toolbar.
-
You said it shows a progress bar. I can't see anything happening. Also, the original is missing other common terms used in nexus.
I"m using open office 3.3.0
-
How do you run the macro? I've tested and worked with it both in 3.2.0 and 3.3.0 versions of OpenOffice and never had issues with the progress bar or the .ini creation itself.
As for missing items: my spreadsheet is a direct copy of the original Excel spreadsheet included in the game's modding tools - I only ported the original macro, because that wouldn't work in OpenOffice. Everything that's missing in my spreadsheet would also be missing in the original Excel file, so blame the original developers for that one ;)
-
How do you run the macro? I've tested and worked with it both in 3.2.0 and 3.3.0 versions of OpenOffice and never had issues with the progress bar or the .ini creation itself.
tools>macros>run macro>
Library:
tachictypes_vanillasp>standard>ExportToIni>
Macro name:
main
Nothing happens on any of the macro names. I'm using a test directory. mods/phasermod/_work/parms/tachictypes_vanillasp
This would remove all the other additions i'v made to tachictypes.
>As for missing items: my spreadsheet is a direct copy of the original Excel spreadsheet included in the game's modding tools - I only ported the original macro, because that wouldn't work in OpenOffice. Everything that's missing in my spreadsheet would also be missing in the original Excel file, so blame the original developers for that one ;)
Yea, that's what I meant. We need to expand on it. As it now, it's no good for my mod and likely others.
-
Are you running OpenOffice in Windows or Linux?
Or maybe your macro security settings prevent the macro from running? You can change them under:
Tools->Options->OpenOffice.org->Security->Macro Security
(I've set mine to medium, so I'm asked to enable/disable macros when opening a file with macros in it)
Apart from that, I've got no idea why it's not working for you. :(
-
Are you running OpenOffice in Windows or Linux?
Openoffice in windows.
Or maybe your macro security settings prevent the macro from running? You can change them under:
Tools->Options->OpenOffice.org->Security->Macro Security
(I've set mine to medium, so I'm asked to enable/disable macros when opening a file with macros in it)
I set it to medium. Nothing happens. :p
Can you make a video and show it to me? How you do it?