Page 1 of 1

[MOD]Strange Universe [inDev]--> again Events

Posted: Sun May 12, 2013 8:01 am
by Metzelmax
Events are really the greatest bullshit of all time.

Here everything works fine... except for the txtLst. It doesnt load the text, but instead it says: STD_TREE_TEXT which how it is called. Any ideas?

Code: Select all

<event name="TREEL_NOSENS_1">
	<text load="STD_TREEL_TEXT"/>
		<choice hidden="true">
			<text>Prepare to fight!</text>
			<event>
				<ship load="STD_TREEL_SHIP" hostile="true"/>
				<text>You will have to fight the Treel ship without sensors it seems.</text>
				<status type="limit" target="player" system="sensors" amount="0"/>
			</event>
		</choice>
		<choice req="sensors" lvl="3" hidden="true">
			<text>Try to modulate your sensors to compensate for the space anomaly which is created by a Treel ship.</text>
			<event>
				<ship load="SEN_TREEL_SHIP" hostile="true"/>
				<text>Your compentsation works! But as you see the Treel ship, you wished it wouldnt.</text>
			</event>
		</choice>
		<choice req="FTL_JAMMER" hidden="true">
			<text>Use your own Distortion Generator to negate their's.</text>
			<event>
				<ship load="SEN_TREEL_SHIP" hostile="true"/>
				<text>Your sensors work normal again. But the Treel ship attacks anyway.</text>
			</event>
		</choice>
</event>
<textList name="STD_TREEL_TEXT" unique="false">
	<text>"The Sensors are showing some really odd values, Sir!", your Pilot tells you once you arrive at the beacon. You cant make anything out of the data shown by the sensors until one of your crewman screams pointing out of a window. You see a Treel ship move in to attack.</text>
	<text>As you arrive at the beacon your sensors start malfunctioning. The values they show you, dont make any sense. Unless you are within a black whole what you are doubting. By looking outside the window you see a Treel ship charging at you. Well that would explain it.</text>
	<text>First you thought your sensors where out of order when it showed you some really odd Gravimatric values. But as you notice a Treel ship move in to attack, you understand that their space destortions are jamming your sensors.</text>
	<text>The Day started bad. You fell out of your bed, spilled your coffee and now your senors go crazy as a Treel ship starts attacking you. Great.</text>
</textList>

Re: [MOD]Strange Universe [inDev]--> Events

Posted: Sun May 12, 2013 12:05 pm
by DryEagle
you have "unrecogniced" instead of "unrecognised" in one of your texts. this wouldn't cause crashes, but needs fixing anyway :D

as for actual errors in code:

Code: Select all

<choice hidden="true">
   <text>Engage the ship. You dont have time for this.</text>
   <ship hostile="true"/>
</choice>
i'm pretty sure that the <ship> has to be in an <event> rather than in a <choice>. change that and see if it stops crashing, meaning instead it should be:

Code: Select all

<choice hidden="true">
   <text>Engage the ship. You dont have time for this.</text>
   <event>
      <ship hostile="true"/>
   </event>
</choice>

Re: [MOD]Strange Universe [inDev]--> Events

Posted: Sun May 12, 2013 7:38 pm
by Metzelmax
still crashes. Either that wasnt it or there is another error somewhere... I fear I have to redo it :(

Re: [MOD]Strange Universe [inDev]--> Events

Posted: Mon May 13, 2013 1:47 pm
by DryEagle
Check also the length of your texts. If it doesn't fit inside one game event screen window thing, it will crash. and yea go through and make sure all your choice and event etc tags have correct nesting

Re: [MOD]Strange Universe [inDev]--> again Events

Posted: Wed May 15, 2013 1:42 pm
by Metzelmax
Events are really the greatest bullshit of all time.

Here everything works fine... except for the txtLst. It doesnt load the text, but instead it says: STD_TREE_TEXT which how it is called. Any ideas?

Code: Select all

<event name="TREEL_NOSENS_1">
	<text load="STD_TREEL_TEXT"/>
		<choice hidden="true">
			<text>Prepare to fight!</text>
			<event>
				<ship load="STD_TREEL_SHIP" hostile="true"/>
				<text>You will have to fight the Treel ship without sensors it seems.</text>
				<status type="limit" target="player" system="sensors" amount="0"/>
			</event>
		</choice>
		<choice req="sensors" lvl="3" hidden="true">
			<text>Try to modulate your sensors to compensate for the space anomaly which is created by a Treel ship.</text>
			<event>
				<ship load="SEN_TREEL_SHIP" hostile="true"/>
				<text>Your compentsation works! But as you see the Treel ship, you wished it wouldnt.</text>
			</event>
		</choice>
		<choice req="FTL_JAMMER" hidden="true">
			<text>Use your own Distortion Generator to negate their's.</text>
			<event>
				<ship load="SEN_TREEL_SHIP" hostile="true"/>
				<text>Your sensors work normal again. But the Treel ship attacks anyway.</text>
			</event>
		</choice>
</event>
<textList name="STD_TREEL_TEXT" unique="false">
	<text>"The Sensors are showing some really odd values, Sir!", your Pilot tells you once you arrive at the beacon. You cant make anything out of the data shown by the sensors until one of your crewman screams pointing out of a window. You see a Treel ship move in to attack.</text>
	<text>As you arrive at the beacon your sensors start malfunctioning. The values they show you, dont make any sense. Unless you are within a black whole what you are doubting. By looking outside the window you see a Treel ship charging at you. Well that would explain it.</text>
	<text>First you thought your sensors where out of order when it showed you some really odd Gravimatric values. But as you notice a Treel ship move in to attack, you understand that their space destortions are jamming your sensors.</text>
	<text>The Day started bad. You fell out of your bed, spilled your coffee and now your senors go crazy as a Treel ship starts attacking you. Great.</text>
</textList>