- Joined
- Mar 21, 2008
- Messages
- 375
sequel to this thread, but only indirectly related
i am using triggerhappy's codegen system and i'm looking for ways to shorten the save code it produces
my issue is that i have 3 inventories to be saved in addition to the charges of each of those items, which makes the save code pretty chunky
additionally, in codegen you have to specifically order the things you want to save, so it seems i can't avoid saving unnecessary information like the following:
- empty inventory slots
- item charges for an empty inventory slot
- item charges on an item that doesn't use charges
is there any way to avoid saving "useless" stuff???? or am i fricked
tl;dr i have two questions:
1. how do i save 3 inventories + item charges of each item while not bloating the length of the save code
2. how can i avoid saving unnecessary stuff e.g. empty inventory slots
too long didn't read the tl;dr: im dum help me
i am using triggerhappy's codegen system and i'm looking for ways to shorten the save code it produces
my issue is that i have 3 inventories to be saved in addition to the charges of each of those items, which makes the save code pretty chunky
additionally, in codegen you have to specifically order the things you want to save, so it seems i can't avoid saving unnecessary information like the following:
- empty inventory slots
- item charges for an empty inventory slot
- item charges on an item that doesn't use charges
is there any way to avoid saving "useless" stuff???? or am i fricked
tl;dr i have two questions:
1. how do i save 3 inventories + item charges of each item while not bloating the length of the save code
2. how can i avoid saving unnecessary stuff e.g. empty inventory slots
too long didn't read the tl;dr: im dum help me