xml patching MD scripts - diff

The place to discuss scripting and game modifications for X Rebirth.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13478
Joined: Sun, 15. Feb 04, 20:12
x4

xml patching MD scripts - diff

Post by euclid »

Hi all :)

I hope that some of you xml wizards know the answer to this. I'm trying to patch an MD file using the very same format as with script xml but keep getting errors like this:

Code: Select all

 LookupKeyName::LookupName(): The key name "diff" is not recognized in lookup 'ScriptXML'
I've tried different elementFormDefault and schemes but that doesn't work. Any hint is appreciated.

Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader »

if your mod works dont worry about that. getting these errors, too when using xml diff files, but everything still works fine ^^
i think it is just about the game noting that it is no core game file creating this error, after that it is applied as diff to the core file
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter ;)

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help ;)
User avatar
pilakin
Posts: 235
Joined: Sat, 16. Feb 08, 23:44

Post by pilakin »

yeah, I see that error popping up during a loading screen or right after starting the game frequently, even if the xml patch is legit. why ever.
User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13478
Joined: Sun, 15. Feb 04, 20:12
x4

Post by euclid »

Ok, it may work but any error has the potential to cause unexpected things. Would be nice to find out if this is actually the correct way of 'patching' MD scripts.

Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader »

ok, for you i have solved it:
replace the <diff> in the beginning with

Code: Select all

<diff xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="rfc5261.xsd">
and the Game doesnt complain anymore.. if you need a rfc5261.xsd there are some out in the Internet or one is included im my extdev package ;) (extdev/libraries-folder)

(although the reference to frc5261.xsd is not necesary, but its easier working with these ^^)
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter ;)

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help ;)
User avatar
Fumblesneeze
Posts: 75
Joined: Tue, 26. Nov 13, 10:07
x3tc

Post by Fumblesneeze »

UniTrader wrote:ok, for you i have solved it:
replace the <diff> in the beginning with

Code: Select all

<diff xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="rfc5261.xsd">
and the Game doesnt complain anymore.. if you need a rfc5261.xsd there are some out in the Internet or one is included im my extdev package ;) (extdev/libraries-folder)

(although the reference to frc5261.xsd is not necesary, but its easier working with these ^^)
I have not managed to do this. I replaced the <diff> with yours and put the rfc file into the same folder (and libraries even).
I still get "The key name "diff" is not recognized in lookup 'ScriptXML'." as well as "The key name "add" is not recognized in lookup 'ScriptXML'." etc.

Any ideas?
Streaming while writing mods: twitch.tv/fumblesneeze
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader »

this was iirc another issue which prevents some things from working properly instead of an Error message but everything works fine..

i could solve it by using the "Linarize xml" function of the Notepad++ xml tools (means the whole xml in one line without unnecesary whitespaces)
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter ;)

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help ;)

Return to “X Rebirth - Scripts and Modding”