Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
Page 1 of 2 1 2
#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

Joined: Jul 2024
A
stranger
Offline
stranger
A
Joined: Jul 2024
Haven't touched the script editor yet, been working on finishing v1.1 of the mod which will make wastelands more like a settlement.

Have you ever figured out how to add your own notes? I'd like to do this to help fill lore gaps between the orcs' and their war between the imps, humans and black ring.

Also is there any x y coordinates listed in scripts for NPC's (like splinter in blue boar inn), or teleporter stones, if not than how are they linked to areas?

Also can their alignment toward the player be changed? I'm hoping for friendly orcs' in wastelands in the further future of the mod.


I also think I came up with an idea on how to load up cabinets and chests with custom gear. Basically I would open the cabinet or chest in game, load it with appropriate gear, save it than pull the world map out of the save, put it in main/startup and test to see if that gear ends up in the container. This will fix containers having similar items.


Edit: how did you load custom worlds in save games? I wanted to wrap to wastelands for some gameplay footage without having to play the whole game.


Also version 1.1 is close to release. I'm sure you have your own mod, but feel free to take a peek through it with a separate installation and let me know your thoughts and criticisms. I purposely did not show like 80% of the mod so people can have their own experience.

Had my friend try it, he spends like 15 mins or so in Aleroth before bee lining toward ars magica. He spent like an hour in Aleroth with my mod and still hadn't even left the front gate. I wanted people to spend more time in Aleroth before leaving.

Last edited by ArsTheBright; 22/07/24 11:32 AM. Reason: Update
Joined: Nov 2022
R
Raanar Offline OP
stranger
OP Offline
stranger
R
Joined: Nov 2022
I'm going to completely redesign the editor in the future, because with each update it becomes more and more inconvenient for me.
For now, I can suggest using this to quickly move around the world:
https://github.com/Raan/DivTeleport/releases/tag/v0.0.2

Last edited by Raanar; 23/07/24 08:10 PM.
Joined: Jul 2024
A
stranger
Offline
stranger
A
Joined: Jul 2024
Thank you very much! This will make testing much easier! I'm putting scripting for the mod on hold until I get mapping, skill balancing, and repeat items in chests cabinets sorted out first.

I'll play around with it from time to time, but I'm thinking I would be wise to eventually find someone good at scripting to take care of that.


As for rewriting the editor, sounds tough so best of luck. Don't forget to take a break now and than so you don't hit burnout. I was experiencing that editing wastelands, lucky I am halfway done. I took a break and feel better now, so don't forget to take time for yourself.

Edit: not to pile on but eventually a program that could edit dialog.000 would be ideal. I believe all the conversations and choices are in there. Between that and scripting, new NPC's and dialog can be injected into the game. My thoughts being adding some background, backstory and lore through dialog in the wastelands to fill the gaps in the story.

Getting NPCs' to work is tricky. Some areas don't allow any, some allow certain types, it's really limited. NPCs' seem to be tied to the data file just like items. Putting the following in Aleroth in the beginning caused issues:

Butterflies morph sometimes into guards
Bunnies sometimes turn into skeleton warriors
Frogs sometimes turned into asp snakes
Dog turned into an orc warrior
Waitresses are fine
Vendors morph into random people or creatures


Seems the game almost insists that if you add NPCs than they must be in certain areas and be similar to each other with a few exceptions to the rule. Add an NPC in a wrong area and it can cause data corruption and crash, requiring you to copy over a clean install and try again.

None of this is your program, the game just has weird rules that must be learned.

Last edited by ArsTheBright; 26/07/24 02:01 PM. Reason: Dialog.000
Page 1 of 2 1 2

Moderated by  Larian_QA, Lar_q, Lynn, Macbeth 

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