Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
#832365 11/11/22 06:45 PM
Joined: Nov 2022
R
Raanar Offline OP
stranger
OP Offline
stranger
R
Joined: Nov 2022
I dug a little into the game files and wrote a simple editor in java.
If there is someone here who understands the structure of the game files, I would like to get help from him. Thank you!


Joined: Dec 2022
S
stranger
Offline
stranger
S
Joined: Dec 2022
Good deal !) Your editor can cut animations from games? I know python,but i cannot discription files game (0,1,2 ...x1,x2,x3 ...bic)

Joined: Nov 2022
R
Raanar Offline OP
stranger
OP Offline
stranger
R
Joined: Nov 2022
I extracted textures and sprites using this utility: https://www.extractor.ru/ipb/index.php?showtopic=2300&p=14525
At the moment, I can modify world.X0 .X1 .X2 .X3 files (delete, move, copy objects and textures).
I have not yet figured out how to create new objects with certain properties so that the game perceives them correctly. Objects are stored not only in the objects.x0 file, but most likely in the date.000 file
I write the editor in Java, I have little experience, so I don’t know how to implement a lot.
Here is the video of the latest version:

Last edited by Raanar; 28/12/22 07:15 PM.
Joined: Nov 2022
R
Raanar Offline OP
stranger
OP Offline
stranger
R
Joined: Nov 2022
First results, slightly increased the area of Aleroth.

Joined: Nov 2022
R
Raanar Offline OP
stranger
OP Offline
stranger
R
Joined: Nov 2022

Joined: Nov 2022
R
Raanar Offline OP
stranger
OP Offline
stranger
R
Joined: Nov 2022

Joined: Nov 2022
R
Raanar Offline OP
stranger
OP Offline
stranger
R
Joined: Nov 2022

Joined: Jul 2024
A
stranger
Offline
stranger
A
Joined: Jul 2024
I have started playing around with your editor and have spent many hours of enjoyment with it. I am currently working on making some tweaks to world 0 and plan to do the following with it:

revamp and beautify aleroth.
player home in aleroth
revamp aleroth cave.
remove book pile in mardaneous's house that slows him down when unfreezing lanilor because mardaneous is always painfully slow. Those extra seconds matter to me.
remove stormfest castle treasure room door (the teasing is over, time to give the people what they want)
remove dr. elrath stupid door puzzle (too many people lost saves to this, also this makes no sense lore wise how dr. elrath would even get access to parts of his house without being locked in forever. Seeing as the only teleporter stones in existance are with the divine one). I have already solved this quest many times before, im sure many have and its time for it to go.

I had to scrap some map changes as I had accidently pressed some keys which deleted random objects and walls on the maps of world 0.

I am impressed with this editor! I wanted to personally thank you and tell you did a great job for even just a 0.2 release.

I have some feature suggestions if you are interested:
zoom ability or atleast a minimap to help find locations more precisely.
changing the texture "brush" size. Its too large, I cant quite make fine details without using in game objects to cover texture lines.
an ability to lock certain keys like space bar from accidental press.
creating backups before modifying
maybe setting up a save file timer (every 15 or 30 mins)?

I understand object properties are a bit of an issue now so I didnt list that. Also I am not sure if all of the textures are being loaded. i cant find aleroth's cobblestone road texture anywhere.

also if anyone is interested, i can post my modifications on the forums if anyone is interested.

Joined: Nov 2022
R
Raanar Offline OP
stranger
OP Offline
stranger
R
Joined: Nov 2022
Thank you for feedback!
I will take your wishes into account for the next release.
The cobblestone texture in Aleroth is called Way_02.
I can also recommend trying the script editor for DD: https://github.com/Raan/DivineDivinity_ScriptEditor/releases/tag/v0.0.2

Joined: Jul 2024
A
stranger
Offline
stranger
A
Joined: Jul 2024
Yeah, about the cobblestone tex. I wasn't being too "bright" because I found it. Haha.

As far as the script editor, I think it's above my head right now. I was mostly looking for references to reputation, which must be stored elsewhere. I don't know anything about scripting DD to be useful. But I did take a peek at it and looked through the scripts.

I hope I can help promote your editors so others will see and download them. So maybe I could do that by sharing screenshots either on site or send them to you to help show people what your map editor is capable of. As far as promoting your script editor, you would need someone with more brains than me in scripting.

Edit:
I created an account when I stumbled across this. I also thought it would suck to wait 3ish months for a reply after your 0.2 release. Fyi larian forums, I'm not talking smack, just merely expressing empathy in this instance, no malice in that statement.


By the way ranaar, there are many steam forum discussions on DD, I would also promote your editors there. I would be careful with modnexus. I heard (allegedly) they try to take over ownership of mods and works hosted on their site. I would sign your code to help secure your ownership of the source code just as a "cover your assets" plan.

Last edited by ArsTheBright; 14/07/24 02:05 AM. Reason: Prevent double post
Joined: Nov 2022
R
Raanar Offline OP
stranger
OP Offline
stranger
R
Joined: Nov 2022
Here is a simple example of editing scripts:

I'm making this editor just for fun, let anyone use it in any way they want smile

Last edited by Raanar; 14/07/24 02:24 PM.
Joined: Nov 2022
R
Raanar Offline OP
stranger
OP Offline
stranger
R
Joined: Nov 2022
By the way, I would be interested to see what you were able to do with the help of the editor wink

Joined: Jul 2024
A
stranger
Offline
stranger
A
Joined: Jul 2024
I had just saw that video before I went to bed. That should be fairly helpful, especially the comments section.

Also can you recommend a free site to upload photos and maybe videos? What about a site to host my and other people's DD mods so people can download them?

I also have the file to enable lar's bone difficulty (nightmare difficulty).

How do you remove darkness shroud/fog when you extend the walls of the caves further than the original map? Some of the areas in mardaneous's cellar that I made bigger are covered in complete darkness. What removes that darkness?

Edit: how do I add trade merchants? Want to add an alcohol vendor, food vendor and second trade vendor in aleroth.

Last edited by ArsTheBright; 15/07/24 02:44 AM. Reason: Question
Joined: Jul 2024
A
stranger
Offline
stranger
A
Joined: Jul 2024
I have some more issues to report for the map editor:

1. You can't change property values with the properties window.

2. NPCs' (all of them) do not work. Not even the rats (I added in) work or even show up. The editor may need to be linked to more game files to get the data structure for items and NPCs'

3. Can't remove permanent shroud in parts of mardaneous's aleroth cellar I extended the size of. Torches don't work either, running through the shroud doesn't remove it.

What does work are all decorations, copying items from the map, textures and tiles. That is very impressive for a 0.2 alpha release. It's already a powerful tool as it stands currently. It's a great editor, just needs a little polish. I have spent at least 2-3 days worth of hours on it, that includes having to start over when random walls and items were deleted.



As for the script editor:

1. Nothing I add works. Even if I use your example character for character, letter for letter. I can get the skill or a rep increase but it locks up the conversation with joram no matter where the new code is injected.

2. Also, it's hard to read the compiler errors when it closes so fast. Also can't get logging to work. So could you keep the compiler open or a yes or no prompt to fave the changes? Also if it has errors it shouldn't compile anything but should leave the compiler errors on screen for the scripter to see where the problem may lie.

Can't really rate this program yet because I still am a noob at DD scripting. I tried viewing the story file through a text editor (notepad++) and a hex editor (HxD) and all I got was garbage code (like you get when you view a files contents with the wrong program) so I couldn't view the in-game examples you mentioned.



Props editor:

This program just works! I don't even know if there's anything you can do or even add. Wish you can change skeleton types you summon to different types but I'm sure that data isn't even in props.000

Either way this props editor feels complete to me.



My mod (still in alpha) is almost ready for release once I work out the rest of the graphical gremlins (in game). Some graphic issues can't be fixed like aleroth roof sides. So when I extend buildings walls not covered by the roof, they are visible and need to be covered. Problem is whatever is used to cover your new walls may poke through them, so a balance or compromise has to be made. Also you can see partly inside houses, nothing can be done about this.

EDIT:
thread for mod made, all pics and downloads will be posted here: https://forums.larian.com/ubbthreads.php?ubb=showflat&Number=945264&#Post945264 so we can keep this thread from getting derailed by my mod. that way people can post questions about the editor on here without anything else off topic ruining it.

Last edited by ArsTheBright; 17/07/24 02:19 PM. Reason: Map editor comment
Joined: Nov 2022
R
Raanar Offline OP
stranger
OP Offline
stranger
R
Joined: Nov 2022
Regarding the script editor: you can try to upload it to the game folder bink2w32.dll (x86) from this link: https://github.com/ThirteenAG/Ultimate-ASI-Loader/releases

Roofs in the game can be turned off completely if you delete all bytes with the HEX editor in the static\imagelists\roofs.dat file

I don't know how to remove the veil in the dungeons yet, but I think it's possible.

I don't have much free time right now, so the editor hasn't been updated for a long time, but one day I'll do it.

Joined: Jul 2024
A
stranger
Offline
stranger
A
Joined: Jul 2024
I will try that file out with the script editor. I went ahead and posted what I have for the mod. It will probably still need some work but a majority of the issues have been squashed. You should get some pretty nice coverage now.

as for roofs.dat do I just gut the file and leave it 0 kilobytes or do I zero it out with a hex editor?

also I understand your life is not dedicated solely to these tools and that is understandable. I hope I speak for the community when I say we are very grateful for your contributions. Even if these end up being the final versions, you still did something incredibly amazing. So take a break, enjoy life for a while, and when you come back, perhaps there will be more feedback to help you code your tools.


I do have one request that might possibly bypass the need for hooking into data files to make npc and objects work. if its possible, maybe a "vault map" could be generated as a temperary holding cell for items and npcs (along with the ability to copy NPCs) so when you change maps, it still holds them and you can place those things on the map you just loaded. Example: I open the vault tool in the map editor, I go to world 3, copy some monsters than load world 0 and offload monsters from the fault where ever I like. Not sure if its even possible, but its a wacky idea I thought might have a remote possibility of being helpful. We would also need the ability to edit properties, maybe that could bypass needing to load data files, but im just guessing. Anyway, I will see you around sometime.

Joined: Nov 2022
R
Raanar Offline OP
stranger
OP Offline
stranger
R
Joined: Nov 2022
Yes, you need to completely clear the props.data or create a new empty file.
I'll think about how to implement an object buffer in the future.
Your enthusiasm gives me energy to continue working on the editor smile


Moderated by  Larian_QA, Lar_q, Lynn, Macbeth 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5