Jump to content

Finding the GUID in the gamedata


Recommended Posts

Hello, I'm very confused on how I find all the objects in the game.

 

I'm starting to get how to mod for this game after many hours and was thinking to start doing so relatively soon for my next play through.

 

So I want to start with some incredibly rudimentary lessons on how to go about modding and the very first thing I tried lead to a dead end.

 

- I used the cheat iroll20s

- hovered my mouse over an object

- used the console command "PrintInstance oei_hovered"

- opened Sublime Text and searched "Files" for the clipboard GUID (see img url below)

- And everything I search for is never in any files.

 

https://i.imgur.com/3Dsia1m.jpg

 

I don't get it. How do I start editing the gamebundle files if everything is never in them.

 

What am I doing wrong?

Link to comment
Share on other sites

The GUID you're getting from PrintInstance is the GUID of the Unity object in the scene.  This object isn't from a gamedatabundle itself - but it makes use of a number of gamedata objects that you can change, like Loot Lists.

 

Unfortunately, it isn't easy to get the game to tell you which gamedata objects those are. You can search the bundles for the names of characters and abilities and usually find their data, but loot lists are generic and won't have names that are easy to identify.

 

It's a bit of a mess, but you can try using the command ToggleObjectHierarchy and finding the object you identified in there.  Then, you can see pretty much all the data the game has for that object, including the GUIDs of the game data objects it's using.

 

objecthierarchy.png

 

(If your goal is to add items to this container, you can avoid a lot of this and follow this tutorial).

  • Like 1
Link to comment
Share on other sites

> is the GUID of the Unity object in the scene

 

I see now, that was at the back of my mind that all these world objects are the actual unity engine object GUID's [...]

 

> If your goal is to add items to this container, you can avoid a lot of this and follow this tutorial

 

[...] which is the exact tutorial I was following so I thought I get hands on before starting my mod and attempted to find those GUID's in the json gamedata (with no luck). But now I get it.

 

 

Ok, back to figuring out a way to add "Shady" disposition to the character whenever they open a chest flagged as owned; aka Stealing. I see I need to assign the type of disposition GUID and a magnitude of a disposition GUID (minor, ...) to the parameters. So far I'm at 0% complete. =)

Link to comment
Share on other sites

From my examination of the game this is all controlled by level*

 

There are at least two IDs for all objects in *.gamedatabundle

 

There's a Unity ID in level???? and the gamedatabundle one which is an alias for the Unity ID that is presumably translated into the Unity object

 

The important thing to note here is that the IDs in the JSON are a small subset of all the IDs

 

For example, in the tute @BMac point out, if you scroll down a bit you'll see several fully worked examples with source I wrote

This uses the boar on the starting beach as an example. The ID of the boar is a Unity object - there is nothing in the JSON that targets that specific boar - there's a generalised boar and it's lootlist but they won't change a specific boar.

 

There are add and remove lootlist calls in 3.0 that allow us to change what something contains

 

To your SPECIFIC issue the ID appears only in level 339

Where's that specific chest? I'll go play with it...

  • Like 1

OK Fair warning has been applied

 

I'm gonna move the domain to https://perspak.com early Feb but will keep all content

 

There are reasons behind this move which basically boil down to unifying my release schedule

 

My friends are welcome to play (I'll set you up your own areas if you desire them)

 

Please note that this process is messy so may take a few weeks 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...