what file contains current in-game loadouts, what shortcut key it has been saved to?

Catch-all for all development not having a specific forum.
Post Reply
fwiffo
Posts: 1525
Joined: Fri Sep 07, 2007 4:38 am
Location: CA, USA
Contact:

Post by fwiffo »

is it just stored in memory?
is it something easy like the keymap file? can you explain the format too if its unintuitive?

thanks
Image
ImageImageImageImageImageImageImageImage
A Spathi's Axiom for Survival: "The only brave Spathi is a dead Spathi. RUN YOU FOOLS!"
Spunkmeyer
Posts: 2013
Joined: Fri Jun 27, 2003 7:00 am
Location: Contact me regarding: CC, Slayer and AllegWiki.

Post by Spunkmeyer »

It's loadout_cc16.dat in the root.

It's a binary dump. I can get you the exact field sizes but what are you trying to do?

The information is hierarchical:

Code: Select all

Total number of lists
Lists
  Number of ships in the list
  Ships
      Hull ID for the ship
      Number of parts in the ship
      Parts
        Part ID
        Mount ID
So there are 10 lists (0-9) and those are mapped to keys 0 to 9. The loadouts are not grouped by ship, but rather the same ship is copied into multiple lists (=loadouts).
Last edited by Spunkmeyer on Thu Nov 29, 2012 11:45 pm, edited 1 time in total.


Want bigger games? Log on to play at the official game time: 9pmET/8pmCT/7pmMT/6pmPT every day of the week. Also Saturdays 8pm UTC.

dusanc
Posts: 1302
Joined: Sat May 16, 2009 12:06 pm
Location: СРБИЈА/Serbia

Post by dusanc »

Can we get loadouts per faction, so I can make them like:

1 - Initial scout for every faction
2 - Miner D scout for every faction
3 - Probing scout for every faction
.
.
.
- "History repeats itself for a reason" - "It's easy to cry for war when you've never experienced it" - "It's better to negotiate for 10 years then make war for 10 days" - "The strong do as they will, and the weak do as they must"
Image
Spunkmeyer
Posts: 2013
Joined: Fri Jun 27, 2003 7:00 am
Location: Contact me regarding: CC, Slayer and AllegWiki.

Post by Spunkmeyer »

We can hack it, it won't be clean without considerably more work... but in any case, I don't think it's worth the effort. It's annoying to set up loadouts for all 9 factions but it's not THAT bad.

Having to copy the file over after every core change is pretty bad though, esp. since few people know about it. That we gotta fix.


Want bigger games? Log on to play at the official game time: 9pmET/8pmCT/7pmMT/6pmPT every day of the week. Also Saturdays 8pm UTC.

fwiffo
Posts: 1525
Joined: Fri Sep 07, 2007 4:38 am
Location: CA, USA
Contact:

Post by fwiffo »

eww.. ok thanks for info. yea someone had asked me to look into this to see if i could set it up so that their loadouts would be set up the same way all the time (i think the current setup forgets if you exit the game)

i remember what a pain in the ass even reading the .igc file was so this is probably beyond my abilities :(
Image
ImageImageImageImageImageImageImageImage
A Spathi's Axiom for Survival: "The only brave Spathi is a dead Spathi. RUN YOU FOOLS!"
raumvogel
Posts: 5910
Joined: Sun Jul 20, 2003 7:00 am
Location: My lawn
Contact:

Post by raumvogel »

Yea, I've just gotten used to re-configuring scouts constantly.
Image
Post Reply