MBINCompiler icon indicating copy to clipboard operation
MBINCompiler copied to clipboard

problem with large .exml files

Open Timo3681 opened this issue 9 years ago • 8 comments
trafficstars

MBINCompiler dows not work if i want make a .MBIN file. MBINCompiler have problems with Big changes.

http://i.imgur.com/zowrM0B.jpg

Timo3681 avatar Sep 03 '16 07:09 Timo3681

It would be great if you could provide your modified .exml file.

Bananasft avatar Sep 03 '16 18:09 Bananasft

http://www.mediafire.com/download/jsi97jm7eghfwau/BIRD.SCENE.exml

and

http://www.mediafire.com/download/8dqug4dc487fana/BARRENCOLOURPALETTES.exml

Timo3681 avatar Sep 03 '16 18:09 Timo3681

64 x<Data template="Colour">

http://www.mediafire.com/download/l5ct8hcjw4l86kx/BARRENCOLOURPALETTES64.exml

^ MBINCompiler works.

65 x <Data template="Colour">

http://www.mediafire.com/download/gcbh43xvw4cvnz5/BARRENCOLOURPALETTES65.exml

^ MBINCompiler does not work.

I have testet it with 64 x <Data template="Colour"> and 65 x <Data template="Colour"> in first Part of the exml file.

Timo3681 avatar Sep 04 '16 07:09 Timo3681

The BARRENCOLOURPALETTES file can't be extended, it uses fixed arrays instead of lists, so there has to be 38 GcPaletteData entries, and 64 Colour entries inside each GcPaletteData, we can't change this as the array sizes are baked into the exe.

We should probably figure out a way to show inside the XML when a Property is a fixed-size array, atm the only real way to tell if a Property is an array or not is to browse the code which isn't exactly user-friendly...

Enums also have the same issue, as users would need to look at the code to see what values to use. Maybe these problems can be fixed by simple XML comments, hmm..

emoose avatar Sep 05 '16 01:09 emoose

Add a property to the exml for mandatory. You can ignore it or enforce the rules on recompile.

On Sun, Sep 4, 2016 at 8:37 PM -0500, "emoose" <[email protected]mailto:[email protected]> wrote:

The BARRENCOLOURPALETTES file can't be extended, it uses fixed arrays instead of lists, so there has to be 38 GcPaletteData entries, and 64 Colour entries inside each GcPaletteData, we can't change this as the array sizes are baked into the exe.

We should probably figure out a way to show inside the XML when a Property is a fixed-size array, atm the only real way to tell if a Property is an array or not is to browse the code which isn't exactly user-friendly...

Enums also have the same issue, as users would need to look at the code to see what values to use. Maybe these problems can be fixed by simple XML comments, hmm..

You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/emoose/MBINCompiler/issues/75#issuecomment-244641871, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALUxnOOGAjpQSFFYERoLyxXe0kZSQleEks5qm3JBgaJpZM4J0P75.

rmcolbert avatar Sep 05 '16 01:09 rmcolbert

We could probably check that the number of array elements in the XML match the size of the array defined in the structure, they shouldn't really differ unless the user changed something.

emoose avatar Sep 05 '16 01:09 emoose

What is wwith http://www.mediafire.com/download/jsi97jm7eghfwau/BIRD.SCENE.exml?

I add Assets from Fishs and MBINCompiler dows not work. How can i add Assets from other animals? I want all Assets on all animals.

Timo3681 avatar Sep 05 '16 14:09 Timo3681

Timo it looks to me the "assets" are built into the model and the scene files just give lists of them for the game to pick and choose from when creating the creatures (unhiding the ones the game chooses). Don't think you can share assets among models as they are defined through the geometry files for each individual model.

jvarnes avatar Sep 05 '16 22:09 jvarnes