Jump to content

Rokin

Registered Users
  • Posts

    10
  • Joined

  • Last visited

Reputation

0 Neutral
  1. I try to do my best for English, sorry if I write very badly. I have already written alot of "advanced" lua/python/bash etc files for mmo, minecraft, linux & co, but if you are not too stupid, you can keep your judgment and sarcasm for you and try to understand that learn and start modding a "niche game" for the first time without a good api doc and not enought informations available is not easy. So, you can just ask me more details if I write badly if you want try to help me or hit the road. A big part of the code is already done in the file worldgenmain.lua (random generation and on the fly for the number and the content of the rooms and tasks) but for example I have problems to know how to properly place my code to retrieve and use my "parameters.world_gen_choices" in the worldgenmain.lua. I do not ask anyone to write the mod, I seek only to know, as i try to explain better in the second post, if it's possible to use a copy of the original "worldgen_main.lua" in my mod folder and use it during the World Generation which is quite solve my problems like this.
  2. Hi rewrite my topic here because my first was in wrong forum http://forums.kleientertainment.com/topic/56007-custom-worldgen-mainlua-in-mod/?p=652946 >>>>>>>>>>>> Uuuum I did not understand.. I have my mod : ../DST/mods/<mysupermod>/ I have written some code in : ../DST/mods/<mysupermod>/modmain.lua../DST/mods/<mysupermod>/modworldgenmain.luaIf i want, in this example, modify "rooms.lua" (in "hardcode", without use any api) i can put a copy of this file in my mod directory and modify it (the game read that copy if the mod is enable) ../DST/data/scripts/map/rooms.lua(copy to)../DST/mods/<mysupermod>/scripts/map/rooms.luaNow if i want modify worldgen_main.lua ../DST/data/scripts/worldgen_main.luai can try to put a copy in : ../DST/mods/<mysupermod>/scripts/worldgen_main.luaBut the game not use it. (If y have a little understand, the game call worldgen_main.lua after mods loading.) so what i must do ?! ../DST/mods/<mysupermod>/scripts/worldgenmain.lua../DST/mods/<mysupermod>/data/scripts/worldgenmain.luaI have try but it's change nothing and i found 0 threads who speak from a file named worldgenmain.lua (https://www.google.fr/search?q=worldgenmain.lua&oq=worldgenmain.lua&aqs=chrome..69i57j69i59.327j0j7&sourceid=chrome&es_sm=122&ie=UTF-8)
  3. PS : Oups sorry i look for DST not DS ! I have copy my topic in the good forum : http://forums.kleientertainment.com/topic/56012-custom-worldgen-mainlua-in-mod/?p=652950 sorry sorry
  4. Uuuum I did not understand.. I have my mod : ../DST/mods/<mysupermod>/I have written some code in : - ../DST/mods/<mysupermod>/modmain.lua- ../DST/mods/<mysupermod>/modworldgenmain.luaIf i want, in this example, modify "rooms.lua" (in "hardcode", without use any api) i can put a copy of this file in my mod directory and modify it (the game read that copy if the mod is enable) ../DST/data/scripts/map/rooms.lua(copy to)../DST/mods/<mysupermod>/scripts/map/rooms.luaNow if i want modify worldgen_main.lua ../DST/data/scripts/worldgen_main.luai can try to put a copy in : ../DST/mods/<mysupermod>/scripts/worldgen_main.luaBut the game not use it. (If y have a little understand, the game call worldgen_main.lua after mods loading.) so what i must do ?! ../DST/mods/<mysupermod>/scripts/worldgenmain.lua../DST/mods/<mysupermod>/data/scripts/worldgenmain.luaI have try but it's change nothing and i found 0 threads who speak from a file named worldgenmain.lua (https://www.google.fr/search?q=worldgenmain.lua&oq=worldgenmain.lua&aqs=chrome..69i57j69i59.327j0j7&sourceid=chrome&es_sm=122&ie=UTF-8) I have copy my topic in the good forum : http://forums.kleientertainment.com/topic/56012-custom-worldgen-mainlua-in-mod/?p=652950 sorry sorry
  5. Hello, Sorry, I'm not a pro in english and lua coding, I searched a lot on forum/google/steam/DST source-code some informations but I don't understand everything : I (try) to write a mod who modify the gen-world code (tasks/rooms more customizable and random). Can it's possible to write a custom "worldgen_main.lua" in my mod folder and use it ? (if yes how ?) (ex : After many try, if i try to put a custom "mymod/script/worldgen_main.lua", the game don't want use it) (PS : "LevelPreInitAny API" don't help me for all what i want do) If it's not possible i can try to push my gen-world code in a custom forest_map.lua but its a crap "hook" solution i think. Thank you !
  6. Hello, I have a doubt, if I want overwrite a default PrefabFiles (ex : scripts/prefabs/beefalo.lua) with my custom prefab beefalo.lua, i must do write in my modmain.lua : PrefabFiles = { "beefalo", } (etc...) for it to be loaded or it is not necessary ? (sorry for my bad english )
  7. Hi and thank for the guide I have the same problem that eldr1ch and blahpers, anyone have found the solution ?
×
  • Create New...