[SOLVED!]-THANKS PHOENIX :) factory crate stack size help.

sunshineunits

New Member
Joined
Nov 3, 2021
Messages
16
i followed this thread, and got schematic sizes to be happy at 100k though, which is awesome: https://modthegalaxy.com/index.php?threads/bounty-request-increase-schematic-size-to-10k-partial-claim.780/#post-6996

HOWEVER... my factories still make crates in bunches of ...25. feels like its trolling me :eek:.
756


in this thread i did the same as the OP and even set it to 100k to match my schem size. (if thats impossible, please tell me, 1k would be fine too!) : https://modthegalaxy.com/index.php?threads/factory-crates.644/#post-5797

Heres where i THINK im supposed to edit a value for one item example...but which, and to what? 0_o (im trying to get them all 1000 or higher)
757


as for that 2nd thread reply that mentioned editing the tre files...those a gibberish for me, but i've edit vehicle speeds in them before, , heres a screenshot of the only place i can think of that matches the description, but..which value do i change? the top right area wont let me put in 1000, let alone 100k, and i've no guide for how the hex should be edited, thought i've narrowed it down to the last three chunks, 3rd, and 2nd to last being 00, and the last is 20, which seems to be some kind of indicator for type of the number thats in the end of many of the .iff files fields..(which i dont understand either but im prepared to take it on faith if it works lol.
 
Last edited:

sunshineunits

New Member
Joined
Nov 3, 2021
Messages
16
in the lua files in the MTG DevEnv setup, (/home/swgemu/workspace/mtgserver/MMOCoreORB/bin/scripts/object/draft_schematic/item/item_generic_tool.lua) i found
"
craftingToolTab = 524288, -- (See DraftSchematicObjectTemplate.h)
complexity = 10,
size = 2,
factoryCrateType = "object/factory/factory_crate_electronics.iff",
"
which seems to send me to those same files in the tre's to edit things, again, just doesnt indicate how :S

i did go through a couple of the other servers' worth of tre files looking for what their factory crate settings in those files looked like...they looked the same..which is wierdas i know some of them have 1k stack sizes, and makes me think im missing some kind of template for my SIE but cant find that im missing any :( (even downloaded the pack of them ...which in all the juggling ive forgotten where i found it...i tink it was thought the github guide/links to getting started, sorry the matrix is winning atm) good luck all!
 
Last edited:

Phoenix

Moderator
Staff member
Moderator
Joined
Sep 25, 2010
Messages
227

Enferno

New Member
Joined
Oct 7, 2021
Messages
19
Not quiet sure what program/tool you're using to edit your Core3, but I use Eclipse (only because it came on the version I downloaded) and you can actually use "search" then "file" and it will search the entire database. In other words, you knew you wanted "FactoryCrateSize" if you searched that then it would've pulled up everything that has that written. Even the 2 files/places that Phoenix posted.

Just trying to show this so you can easily find what you're looking for next time :)
 

sunshineunits

New Member
Joined
Nov 3, 2021
Messages
16
THANKS! thats exactly what i was looking for :D you rock! being able to adjust the crate size for every item is really powerful too, it would let you personalize it really well for a server/profession, thats awesome :).
i hate to be mucking around in the machinery with my caveman rock tools and lack of understanding XD, this thing is a work of art! (lets hope i dont break the whole thing when i smash-with-rock, the details i want to adjust lol.
 

sunshineunits

New Member
Joined
Nov 3, 2021
Messages
16
Not quiet sure what program/tool you're using to edit your Core3, but I use Eclipse (only because it came on the version I downloaded) and you can actually use "search" then "file" and it will search the entire database. In other words, you knew you wanted "FactoryCrateSize" if you searched that then it would've pulled up everything that has that written. Even the 2 files/places that Phoenix posted.

Just trying to show this so you can easily find what you're looking for next time :)
oh thanks! that could be really helpful too! i've been poking around for a kind of mass override that doesnt wipe out all the fine detail on this kind of thing, so i'll look for that in the 'visual studio code' that came with the DevEnv (and possibly more i've not discovered yet) thanks for the suggestion! [edit: found it! in the edit menu, 'find in files' awesome thanks!]

(for items without a specified factoryCrateSize = line in their lua's, )
for testing purposes on my solo server, if i wanted to set all items to be produced in X size stacks from factories for example...
[i hate to ask this because its amazing work! XD]

in the file
/DraftSchematicObjectTemplate.cpp
at line 79 in the first file phoenix posted, there is this, for example-
"
} else if (varName == "factoryCrateSize") {
factoryCrateSize = Lua::getIntParameter(state);
"

if a caveman wanted to stop the system asking what each items lua file said for a parameter in that list, would changing "Lua::getIntParameter(state)" in that equation to "100" break everything? (or even or even (10 * Lua::getIntParameter(state)) or something?) im too much of a coding baby to know what its looking for there for a value but it seems thats where it stores the info it gets from the specific item's file, and its specific factoryCrateSize.
 
Last edited:

Phoenix

Moderator
Staff member
Moderator
Joined
Sep 25, 2010
Messages
227
For all the ones that have that varName, if you change it to "factoryCrateSize = 1000;"
that will set it fine. Just Comment out the lua::getInt part.
 

sunshineunits

New Member
Joined
Nov 3, 2021
Messages
16
ok, thanks! :) i hate to do it becuase it bypasses what i can see is alot of careful adjustment for populated servers, and making things convenient and sensical to what is realistic for a box to hold (no 50,000 chairs in a single box in a world that makes sense lol) -as a fledgeling worldbuilder i just cant fit it all in my house in a solo server, haha XD.

im considering doing a sort of generational style of play with this loopback server, where the first generation gets resources in crates for a decent fee, or as boss drops, because the resources didnt exist yet on the server etc etc, so that basic crafts and supplies can be created. (i dont even know what goes into armor and weaponsmithing beyond the most basic level, heh. I never have played one. im looking forward to exploring the game in more detail though!

in fact i now know where some of the veterans i played with before got their extensive knowledge of the game, -my god this is very technical and the iceberg effect is real lol, i had no idea it was so much to assimilate, and have a LOT more respect for people that run a server, and those like you who created and work with this system :D
THANKYOU! :D
 
Top Bottom