ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
Dual Question: .Xml error & Logic Modding...

1 2 | Next 10 events »| All Messages
Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  00:37:43  5 July 2012
profilee-mailreply Message URLTo the Top
DutyStalker666
Senior Resident
 

 
On forum: 10/25/2011
 

Message edited by:
DutyStalker666
07/05/2012 0:47:19
Messages: 169
Dual Question: .Xml error & Logic Modding...

Hello fellow S.T.A.L.K.E.R.s,

I have encountered a problem with my "enc_string_Table_custom.xml", Here is the contents of it: http://pastebin.com/RWYH86rC

I must have stared at it for over three hours... I give up... My error log claims: "XML file:text\eng\string_table_enc_custom.xml value: errDescr rror reading end tag."

I checked it for three hours and I could not find a error in my .xml. If anyone can sees a error, please post it, Thanks.

Now for the second part of my post,

Can I assign logics to custom, unique NPCs which I spawned via .script without touching the all.spawn? And if so, how?

Thanks for reading.
  01:38:46  5 July 2012
profilee-mailreply Message URLTo the Top
nashathedog
Senior Resident
 

 
On forum: 01/31/2011
Messages: 8253
Is it just in COP or should it not also be

<string id=blah blah blah>
<text>blah</text>
</string>
<string id="blahdy blahdy blah">
<text>blahdy blah</text>
</string>
  01:39:21  5 July 2012
profilee-mailreply Message URLTo the Top
Stalkerstein
Senior Resident
 

 
On forum: 04/24/2010
Messages: 1975
You have to many forward slashes '/'. Here is little example.


<string_table>
<string id="enc_custom_radio_name">
<text>Radio</text>
</string>
</string_table>
  01:51:26  5 July 2012
profilee-mailreply Message URLTo the Top
DutyStalker666
Senior Resident
 

 
On forum: 10/25/2011
Messages: 169
Thanks guys
The extra slashes don't make me crash but I will clean em up. I added them as a last resort to find out what the problem was.
For some reason I ALWAYS think that there is supposed to be a </string> before the string table. It was staring at me for hours -_- Thanks again.

1 question down, another to go...
  02:23:54  5 July 2012
profilee-mailreply Message URLTo the Top
SetaKat
Ex modder, Zones only ferret and will someday release a game
(Resident)

 

 
On forum: 02/20/2010
 

Message edited by:
SetaKat
07/05/2012 2:24:08
Messages: 6342
Always run an XML through a Web browser to check it. If the Syntax is invalid, then it will highlight where it is.
  02:42:43  5 July 2012
profilee-mailreply Message URLTo the Top
DutyStalker666
Senior Resident
 

 
On forum: 10/25/2011
Messages: 169

---QUOTATION---
Always run an XML through a Web browser to check it. If the Syntax is invalid, then it will highlight where it is.
---END QUOTATION---



Thanks for the tip. I'll be sure to use my browser (Firefox) to ensure that it is free of errors. I got rid of a lot of parsing errors just now.

I can run the game without crashing now, however, Firefox gives me this error:


XML Parsing Error: no element found
Location: file:///C:/Program%20Files%20(x86)/THQ/S.T.A.L.K.E.R.%20-%20Shadow%20of%20Chernobyl/gamedata/config/text/eng/string_table_enc_custom.xml
Line Number 73, Column 15:<string_table>
--------------^



I assume this is simply Firefox's way of saying there are no errors...
  04:23:36  5 July 2012
profilee-mailreply Message URLTo the Top
SetaKat
Ex modder, Zones only ferret and will someday release a game
(Resident)

 

 
On forum: 02/20/2010
Messages: 6342
Actually, its saying there is an errror with the XML, and that it isn't well formed. If it was well formed, it would show the contents of the XML.
In this case, you have an error on line 73. Mind pastebin'ning your xml so we can look at it?
  05:39:50  5 July 2012
profilee-mailreply Message URLTo the Top
DutyStalker666
Senior Resident
 

 
On forum: 10/25/2011
 

Message edited by:
DutyStalker666
07/05/2012 5:42:33
Messages: 169

---QUOTATION---
Actually, its saying there is an errror with the XML, and that it isn't well formed. If it was well formed, it would show the contents of the XML.
In this case, you have an error on line 73. Mind pastebin'ning your xml so we can look at it?
---END QUOTATION---



Here is the working one: http://pastebin.com/3Yb8LNP5

Here is the one AFTER I removed all the / from the string ids... using this one = crash: http://pastebin.com/2JtD2Rx7
  06:16:00  5 July 2012
profilee-mailreply Message URLTo the Top
SetaKat
Ex modder, Zones only ferret and will someday release a game
(Resident)

 

 
On forum: 02/20/2010
Messages: 6342
Your missing a </string> element at the bottom for the last descriptor string
  06:59:06  5 July 2012
profilee-mailreply Message URLTo the Top
DutyStalker666
Senior Resident
 

 
On forum: 10/25/2011
Messages: 169

---QUOTATION---
Your missing a </string> element at the bottom for the last descriptor string
---END QUOTATION---




---QUOTATION---
The extra slashes don't make me crash but I will clean em up. I added them as a last resort to find out what the problem was.
For some reason I ALWAYS think that there is supposed to be a </string> before the string table. It was staring at me for hours -_- Thanks again.

---END QUOTATION---



... I thought that the </string> was making me crash this whole time lol.. So.. I do need a string.. Ahhh my brain must be shrinking...

Feels cool to be able to view it ;D
http://picturepush.com/public/8651181

Thanks a lot, fluffy22 for helping me
From now on I'm double checking every single .xml file I edit.
 
Each word should be at least 3 characters long.
Search:    
Search conditions:    - spaces as AND    - spaces as OR   
 
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
 

All short dates are in Month-Day-Year format.


 

Copyright © 1995-2021 GSC Game World. All rights reserved.
This site is best viewed in Internet Explorer 4.xx and up and Javascript enabled. Webmaster.
Opera Software products are not supported.
If any problem concerning the site functioning under Opera Software appears apply
to Opera Software technical support service.