Jump to content

XML:Advanced tutorial: Difference between revisions

m
fixing one or another issue
m (accessing dev mode (~/^/customkey))
m (fixing one or another issue)
Line 5: Line 5:
Animations, characters, flags, functions from binaries (CONS, CHAR, etc.), lasers, sounds, text pages, trigger volumes, turrets, weapons, etc., they all are recognized by their name or ID in BSL.
Animations, characters, flags, functions from binaries (CONS, CHAR, etc.), lasers, sounds, text pages, trigger volumes, turrets, weapons, etc., they all are recognized by their name or ID in BSL.


That means that you must not modify everything, you can also add new content and it will work together with the old stuff.
This means that you don't have to modify everything, you can also add new content and it will work together with the old stuff.


:: '''''Resources depend on each other.'''''
:: '''''Resources depend on each other.'''''
Line 30: Line 30:
* We goto three points. First, beneath the edge (-600 0 -640). Second, to the always closed door (-650 0 -750). Third, at the opposite side is a electro thingy (-650 0 -475).
* We goto three points. First, beneath the edge (-600 0 -640). Second, to the always closed door (-650 0 -750). Third, at the opposite side is a electro thingy (-650 0 -475).


* Now our XML work begins. We need to extract '''"BINACJBOFlag.oni"''' and '''"BINACJBOPatrol Path.oni"''' from '''level1_Final folder'''. Use "BINACJBOPatrol*.oni when you can't extract the Patrol Path file. (* ''replaces everything'' what comes after it.)
* Now our XML work begins. We need to extract '''"BINACJBOFlag.oni"''' and '''"BINACJBOPatrol Path.oni"''' from '''level1_Final folder'''. Use "BINACJBOPatrol*.oni" when you can't extract the Patrol Path file. (* ''replaces everything'' what comes after it.)


* Let's open [[OBD_talk:BINA/OBJC/FLAG|FLAG documentation]] and the corresponding XML file.
* At file's end we see. "<FlagId>7056</FlagId>" So 7056 is very probably the last flag.
 
* End file's end we see. "<FlagId>7056</FlagId>" So 7056 is very probably the last flag.


* Now we copy a block three times and insert our new data.
* Now we copy a block three times and insert our new data.
Line 107: Line 105:
* Convert it back to .oni format.
* Convert it back to .oni format.


* Remember the test package from [[XML_basic_tutorial|XML basic tutorial]]? Create this directory '''"Oni\Edition\install\packages\90000Test\oni\level1_Final\level1_Final"''', put your oni files into there and reinstall the test package.  
* The modified "BINACJBOFlag.oni" and "BINACJBOPatrol Path.oni" are put into a [[XML_basic_tutorial|package]] now. Reinstall with this package.
 


* Hohoho, we are done? Almost. Still a BSL file needs to be written. Let's kick out all BSL files from '''"Oni\Edition\GameDataFolder\IGMD\EnvWarehouse"''' and insert only this as BSL file. (It's a txt file, suffix changed to bsl.)
* Hohoho, we are done? Almost. Still a BSL file needs to be written. Let's kick out all BSL files from '''"Oni\Edition\GameDataFolder\IGMD\EnvWarehouse"''' and insert only this as BSL file. (It's a txt file, suffix changed to bsl.)
8,018

edits