Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
Richard

Registered:
Posts: 127
Reply with quote  #1 
Hi,

I´m playing the great script Sandbox V4.1 and some times a face a wierd thing: the gate wobbles and the kralien enemy base wobble. Once the gate flew away as it was a ship.



Does anyone know what may bethe cause?

<event name_arme="1" id_arme="0f908293-a9bf-4863-9118-b240765b61c6" parent_id_arme="7a00be79-c126-4680-8975-92e59f8f5b5d">
<if_gm_key keyText="1" />
<if_variable name="GMConsolToggle" comparator="EQUALS" value="10.0" />
<if_variable name="GMPopUpToggle" comparator="EQUALS" value="1.0" />
<if_not_exists name=" KB01" />
<set_variable name="GMConsolToggle" value="1.0" />
<!---->
<create type="enemy" use_gm_position="" angle="0.0" name=" KB01" hullID="1005" />
<set_object_property property="topSpeed" value="0.0" name=" KB01" />
<!---->
<warning_popup_message message=" " consoles="O" />
<warning_popup_message message=" " consoles="O" />
<warning_popup_message message=" " consoles="O" />
<warning_popup_message message=" " consoles="O" />
<warning_popup_message message=" " consoles="O" />
<warning_popup_message message=" " consoles="O" />
<warning_popup_message message=" " consoles="O" />
<warning_popup_message message=" " consoles="O" />
<!---->
<set_object_property property="roll" value="0.0" name=" KB01" />
</event>



Xavier Wise

Registered:
Posts: 1,141
Reply with quote  #2 
I think the problem is that the base is set up as an enemy SHIP rather than set up as an enemy BASE. It needs to be created as a base and set to side 1. By doing this you can also remove unnecessary stuff like:

<set_object_property property="topSpeed" value="0.0" name=" KB01" />
<set_object_property property="roll" value="0.0" name=" KB01" />



These have been added to stop the base moving position, which is required if you set it as an enemy ship. You don't need these if it is created correctly as a base.

I don't know the code off the top of my head, but can get it later tonight when I'm home. Alternatively, you could check the TSN Sandbox and look at the bases in Erebus System as they are all enemy bases. It something like 'create type=base" and 'side=1' that needs to be in there.

__________________
Fleet Captain Xavier Wise - TSN Sabre
Link to TSN RP Community website
Xavier Wise

Registered:
Posts: 1,141
Reply with quote  #3 
Here you go. Remove the following code:

<create type="enemy" use_gm_position="" angle="0.0" name=" KB01" hullID="1005" />
<set_object_property
 property="topSpeed" value="0.0" name=" KB01" />
<set_object_property property="roll" value="0.0" name=" KB01" />


Replace it with this single line:

<create type="station" use_gm_position="" name="KR01" hullID="1005" sideValue="1" />


This should fix your wobbling station problem.

__________________
Fleet Captain Xavier Wise - TSN Sabre
Link to TSN RP Community website
Richard

Registered:
Posts: 127
Reply with quote  #4 
That worked perfectly.

Thanks Xavier.
Xavier Wise

Registered:
Posts: 1,141
Reply with quote  #5 
Great! Glad I could help out.
__________________
Fleet Captain Xavier Wise - TSN Sabre
Link to TSN RP Community website
Richard

Registered:
Posts: 127
Reply with quote  #6 
Few weeks ago I was 100% dependent of the editor but now I realize I can write scripts without it. It is a very good sensation!
[smile]
Xavier Wise

Registered:
Posts: 1,141
Reply with quote  #7 
I know what you mean. After playing with the editor, you start picking up the language being used and when someone posts raw xml code and you can read it, it is a great feeling. I had never done any coding before Artemis, but now I have managed to understand it and am branching out into other stuff (programming an arduino for example). I think its great that Artemis has inspired people to get in to it.

I must admit though, the mission editor does enable me to make huge and complex scripts. It is an exceptionally powerful tool and without it I wouldn't be able to do anywhere near what I am able to!

__________________
Fleet Captain Xavier Wise - TSN Sabre
Link to TSN RP Community website
Richard

Registered:
Posts: 127
Reply with quote  #8 
Quote:
Originally Posted by Xavier Wise
I must admit though, the mission editor does enable me to make huge and complex scripts. It is an exceptionally powerful tool and without it I wouldn't be able to do anywhere near what I am able to!


Indeed. And I do hope some day a superior life form will deliver us a new version of our beloved editor, even more powerful.
Newcommerin

Avatar / Picture

Registered:
Posts: 190
Reply with quote  #9 
+1 with that!

Not the superior lifeform but the new mission editor. [wink]

__________________
Sorry, English is not my native language, I am German.
(* I wish I would live in America, I wish I would... *)
Any mistakes you can find, you can keep and with the spelling mistakes you can cook you an alphabet soup.

My Artemis Homepage: https://star-ship-academy.jimdo.com/
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.