Command & Conquer Forum
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to forum index 
[Login] Login 
Steal money delay.  XML
Forum Index » Red Alert Maps and Modding
Author Message
salamanderz


Joined: 10/23/09 6:40:51 PM
Messages: 50
Offline

Hello again

Well, I wanted to change delay between infiltrations (mostly regarding money stealing), so I've found Includes/InfiltratorContainEconomic.xml
By default, it looks like this:


I've just changed:
BlockedDuration="10s">

However, it gives me following error:
[00:00:21.7031250] Critical: XML validation error encountered in 'z:\ra3 mod sdk\mods\mymod\includes\infiltratorcontaineconomic.xml':
XML validation error encountered in file:///z:/ra3 mod sdk/mods/mymod/includes/infiltratorcontaineconomic.xml (line 0, position 0):
The 'uri:ea.com:eala:asset:InfiltratorContain' element is not declared.

How to fix it?
GoS_Ultima
Commando

Joined: 12/8/08 11:22:01 AM
Messages: 5704
Location: The Nod Temple
Offline

those files cant be edited, ive tried a lot.


I couldnt edit, capture effects, mass production amount, terror drone percentage chance, robotic assembly rate

http://img23.imageshack.us/img23/3134/gosultima.jpg
salamanderz


Joined: 10/23/09 6:40:51 PM
Messages: 50
Offline

Great SDK :-/
TX1138
Fanatic

Joined: 11/3/08 11:30:28 PM
Messages: 1639
Location: As far away as possible.
Offline

Don't listen to Gos, he hasn't got a clue when it comes to these things These files are editable, but there's trick to getting them to work.

The easiest way to get your example to work would be to copy this:

And paste it into the code for each refinery. Also, you'll have to remove this line of code:

From each refinery.

http://i177.photobucket.com/albums/w238/TX1138/Red%20Alert%203/Mod%20SDK/Revolution/revolution_logo_440x100.png
Bibber
Peacekeeper

Joined: 11/4/08 12:29:28 PM
Messages: 444
Location: Germany
Online

Just change the path of the XInclude in your refinery code to your edited file:
and remove this Include from your mod.xml or wherever you have it. All files in the SageXml\Include folder have to be included via XInclude, not the normal Include.

RA3 Mod SDK Extra Files
C&C3 Mod SDK Extra Files
www.bibber.bplaced.net
[WWW] [Yahoo!] [ICQ]
salamanderz


Joined: 10/23/09 6:40:51 PM
Messages: 50
Offline

Still getting errors whatever method I use.

Can anyone just upload those fixed files somewhere and that's all? This starts to really piss me off :-/

UPD: Got it without errors, however:
* No effect in-game (e.g. no 10 sec delay, 30 like default).
* Some other changes seems to be blocked or whatever, for example Shinobi costs 1000, but I've changed him to 800 long time ago.

This message was edited 1 time. Last update was at 11/1/09 3:47:28 PM

salamanderz


Joined: 10/23/09 6:40:51 PM
Messages: 50
Offline

Found my own way:

Dont change anything anywhere, just copy refinery files to your mod folder, then just go to the SageXML, find that infiltratorcontaineconomic.xml or whatever it's called, dont copy it anywhere and just change those values for whatever you want. Do not copy it to the mod folder. And add modded refineries to the end of mod.xml, else they for some reason are blocking some other changes for your mod.
That's all, everything works.
Bibber
Peacekeeper

Joined: 11/4/08 12:29:28 PM
Messages: 444
Location: Germany
Online

Never edit the original files in the SageXml folder!
Do it the way I explained. That means you should copy infiltratorcontaineconomic.xml to your mod folder, change it there and adjust the xi:include path in your refinery file.

This message was edited 1 time. Last update was at 11/6/09 3:49:30 PM


RA3 Mod SDK Extra Files
C&C3 Mod SDK Extra Files
www.bibber.bplaced.net
[WWW] [Yahoo!] [ICQ]
salamanderz


Joined: 10/23/09 6:40:51 PM
Messages: 50
Offline

I tried and it never worked.

At least now everything works, no errors, I can see effect and so on.
I know that I shouldnt edit original sagexml, but all other suggested methods failed.
Bibber
Peacekeeper

Joined: 11/4/08 12:29:28 PM
Messages: 444
Location: Germany
Online

Shall I make you a sample mod to prove or what?

RA3 Mod SDK Extra Files
C&C3 Mod SDK Extra Files
www.bibber.bplaced.net
[WWW] [Yahoo!] [ICQ]
salamanderz


Joined: 10/23/09 6:40:51 PM
Messages: 50
Offline

Previously, when I tried A LOT, I asked if somebody could just upload already modded files
Bibber
Peacekeeper

Joined: 11/4/08 12:29:28 PM
Messages: 444
Location: Germany
Online

Here you go:
http://bibber.bplaced.net/downloads/misc/ra3sdk_stealmoneymodsource.zip

This message was edited 1 time. Last update was at 11/10/09 12:19:04 AM


RA3 Mod SDK Extra Files
C&C3 Mod SDK Extra Files
www.bibber.bplaced.net
[WWW] [Yahoo!] [ICQ]
salamanderz


Joined: 10/23/09 6:40:51 PM
Messages: 50
Offline

Well, I can see you made an extra file refinery.xml

Nevermind, I'm new to this, you're not That's the difference.
Thanks for the lesson
Bibber
Peacekeeper

Joined: 11/4/08 12:29:28 PM
Messages: 444
Location: Germany
Online

The filename doesn't matter. Only the content counts. I could also make 3 files called AlliedRefinery.xml, JapanRefinery.xml and SovietRefinery.xml. That makes no difference.

RA3 Mod SDK Extra Files
C&C3 Mod SDK Extra Files
www.bibber.bplaced.net
[WWW] [Yahoo!] [ICQ]
salamanderz


Joined: 10/23/09 6:40:51 PM
Messages: 50
Offline

Thanks for the lesson
 
Forum Index » Red Alert Maps and Modding
Go to:   
Powered by JForum 2.1.8 © JForum Team