http://handbuch.eepshopping.de/index.php?title=Spezial:Neue_Seiten&feed=atom&hideredirs=1&limit=50&offset=&namespace=0&username=&tagfilter=
EEP Handbuch - Neue Seiten [de]
2024-03-28T11:44:04Z
Aus EEP Handbuch
MediaWiki 1.23.9
http://handbuch.eepshopping.de/index.php?title=LUA_Manual_for_EEP
LUA Manual for EEP
2018-09-10T04:21:31Z
<p>Marc Horstmann: Die Seite wurde neu angelegt: „ System Variables<br> System Function<br> Signal Functions<br> Switch Point Functions<br> Storage Functions<br> [[Train Functions]…“</p>
<hr />
<div> <br />
[[System Variables]]<br> <br />
[[System Function]]<br> <br />
[[Signal Functions]]<br> <br />
[[Switch Point Functions]]<br> <br />
[[Storage Functions]]<br> <br />
[[Train Functions]]<br> <br />
[[Rolling Stock Functions]]<br> <br />
[[Structure Functions]]<br> <br />
[[Cargo Functions]]<br><br />
[[Track Functions]]<br> <br />
[[Camera Functions]]<br> <br />
[[Layout Functions]]<br> <br />
[[Virtual Train Depot Functions]]<br> <br />
[[Sound Functions]]<br><br />
[[Tip Text Functions]]<br> <br />
[[TextureText Functions]]<br><br />
[[Info Text Functions]]<br><br />
[[Tag Text Functions]]<br></div>
Marc Horstmann
http://handbuch.eepshopping.de/index.php?title=Tag_Text_Functions
Tag Text Functions
2018-09-10T04:16:47Z
<p>Marc Horstmann: Die Seite wurde neu angelegt: „ <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"> <tr> <th colspan="2">EEPStruc…“</p>
<hr />
<div> <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPStructureSetTagText()</th><br />
<th style="padding: 10px;">EEPStructureSetTagText("Lua_Name","Text")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPStructureSetTagText( "#1", "occupied:2,3,5,8" )<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 14.2 Plug-In 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Changes the tag-text of a static structure. Each structure now can carry an arbitrary string of maximal 1024 characters. These strings are saved and loaded with the layout.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>The first argument is the Lua-name of the element. The element number with prefix # is sufficient.</li><br />
<li>The second argument is the text.</li><br />
<li>Return value is true if the function was executed successfully, else false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPStructureGetTagText()</th><br />
<th style="padding: 10px;">EEPStructureGetTagText("Name")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
hResult , Text = EEPStructureGetTagText("#1")<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 14.2 Plug-In 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Reads the tag-text of a static structure. With these strings structures can serve as permanent storage for important information.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>The argument is the Lua-name of the element. The element number with prefix # is sufficient.</li><br />
<li>First return value is true if the function was executed successfully, else false.</li><br />
<li>Second return value is the tag-text that was assigned to the static structure.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPRollingstockSetTagText()</th><br />
<th style="padding: 10px;">EEPRollingstockSetTagText("Lua_Name","Text")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPRollingstockSetTagText("DB Zcs-Eva", "Tank car") <br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 14.2 Plug-In 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Changes the tag-text of a vehicle. Each rolling stock now can carry an arbitrary string of maximal 1024 characters. These strings are saved and loaded with the layout. Since these strings are assigned to an individual rolling stock, they won't get lost on coupling or uncoupling trains.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>Argument is the name of the rolling stock.</li><br />
<li>The second argument is the text.</li><br />
<li>Return value is true if the function was executed successfully, else false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPRollingstockGetTagText()</th><br />
<th style="padding: 10px;">EEPRollingstockGetTagText("Name")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
hResult , Text = EEPRollingstockGetTagText("DB Zcs-Eva") <br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 14.2 Plug-In 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Reads the tag-text of a vehicle. With the tag-text rolling stock now can get categorized, e.g. if waggon types or destinations are to be stored.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>Argument is the name of the rolling stock.</li><br />
<li>First return value is true if the function was executed successfully, else false.</li><br />
<li>Second return value is the tag-text that was assigned to the vehicle.</li><br />
</ul><br />
</td><br />
</tr><br />
</table></div>
Marc Horstmann
http://handbuch.eepshopping.de/index.php?title=TextureText_Functions
TextureText Functions
2018-09-10T03:48:02Z
<p>Marc Horstmann: Die Seite wurde neu angelegt: „ <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"> <tr> <th colspan="2">EEP<font…“</p>
<hr />
<div> <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEP<font color="red">_X_</font>SetTextureText()</th><br />
<th style="padding: 10px;">EEP<font color="red">_X_</font>SetTextureText("Lua_Name",Slot,"Text")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPStructureSetTextureText( "#1" , 1, "Neustadt" ) <br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">three</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 14.2 Plug-In 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Assignes a new text to a labelable surface of a model.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>For the type of the model, the <font color="red">_X_</font> is meant to be replaced by one of the following strings:<br />
<ul><br />
<li>Structure</li><br />
<li>Rollingstock</li><br />
<li>Signal</li><br />
<li>Goods</li><br />
<li>RailTrack</li><br />
<li>RoadTrack</li><br />
<li>TramTrack</li><br />
<li>AuxiliaryTrack</li><br />
</ul><br />
</li><br />
<li>The first argument is the Lua-name of the element. The element number with prefix # is sufficient.</li><br />
<li>The second argument is the id of the surface, that is supposed to display the text. It is due to the model, how many labelable faces are supported.</li><br />
<li>Return value is true if the function was executed successfully, else false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table></div>
Marc Horstmann
http://handbuch.eepshopping.de/index.php?title=Info_Text_Functions
Info Text Functions
2018-09-10T03:25:57Z
<p>Marc Horstmann: Die Seite wurde neu angelegt: „ <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"> <tr> <th colspan="2">EEPShowI…“</p>
<hr />
<div> <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPShowInfoTextTop()</th><br />
<th style="padding: 10px;">EEPShowInfoTextTop(R,G,B,Sz,T,J,"Text")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
r = 1 -- red <br />
g = 1 -- green<br />
b = 1 -- blue <br />
sz = 1 -- size <br />
t = 10 -- time <br />
j = 1 -- alignment<br />
Text = "white top centred 10 seconds"<br />
<br />
EEPShowInfoTextTop( r , g , b , sz , t , j , Text ) <br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">seven</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 13 plug-In 1</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Displays the specified text in the upper region of the 3D window.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li><b>R</b>, <b>G</b> and <b>B</b> define the percentage strength of each base colour. A value of 1 stands for maximum strength. The values 1,1,1 result in a white text.</li><br />
<li><b>Sz</b> is for the print size. A value of 1 is standard size. The maximum is 2 (for double size), the minimum is 0.5 (for half size).</li><br />
<li><b>T</b> defines the time the text is displayed for (in seconds). Minimum time is 5 seconds.</li><br />
<li><br />
<b>J</b> defines the horizontal position of your text. A value of:<br />
<ul><br />
<li>0 is for justified text</li><br />
<li>1 for centred text</li><br />
<li>2 for left aligned text</li><br />
<li>3 for right aligned text</li><br />
</ul><br />
</li><br />
<li>Return value is true if the function was executed successfully, else false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPShowInfoTextBottom()</th><br />
<th style="padding: 10px;">EEPShowInfoTextBottom(R,G,B,Sz,T,J,"Text")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
r = 1 -- red <br />
g = 1 -- green<br />
b = 0 -- blue<br />
sz = 1 -- size<br />
t = 10 -- time<br />
j = 1 -- alignment<br />
Text = "yellow bottom left 10 seconds"<br />
<br />
EEPShowInfoTextBottom(r , g , b , sz , t , j , Text ) <br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">seven</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 13 plug-In 1</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Displays the specified text in the lower region of the 3D window.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li><b>R</b>, <b>G</b> and <b>B</b> define the percentage strength of each base colour. A value of 1 stands for maximum strength. The values 1,1,1 result in a white text.</li><br />
<li><b>Sz</b> is for the print size. A value of 1 is standard size. The maximum is 2 (for double size), the minimum is 0.5 (for half size).</li><br />
<li><b>T</b> defines the time the text is displayed for (in seconds). Minimum time is 5 seconds.</li><br />
<li><br />
<b>J</b> defines the horizontal position of your text. A value of:<br />
<ul><br />
<li>0 is for justified text</li><br />
<li>1 for centred text</li><br />
<li>2 for left aligned text</li><br />
<li>3 for right aligned text</li><br />
</ul><br />
</li><br />
<li>Return value is true if the function was executed successfully, else false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPShowScrollInfoTextTop()</th><br />
<th style="padding: 10px;">EEPShowScrollInfoTextTop(R,G,B,Sz,T,J,Sz,"Text")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
r = 0 -- red <br />
g = 1 -- green <br />
b = 0.7 -- blue<br />
sz = 1 -- size<br />
t = 20 -- time <br />
j = 0 -- alignment<br />
sp = 0.2 -- velocity<br />
Text = "turkish blue crawl text for 20 Secs."<br />
<br />
EEPShowScrollInfoTextTop(r,g,b,sz,t,j,sp,Text) <br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">eight</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 13 plug-In 1</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Displays a text crawl in the upper region of the 3D window.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li><b>R</b>, <b>G</b> and <b>B</b> define the percentage strength of each base colour. A value of 1 stands for maximum strength. The values 1,1,1 result in a white text.</li><br />
<li><b>Sz</b> is for the print size. A value of 1 is standard size. The maximum is 2 (for double size), the minimum is 0.5 (for half size).</li><br />
<li><b>T</b> defines the time the text is displayed for (in seconds). Minimum time is 5 seconds.</li><br />
<li><b>J</b> (for justification) serves no purpose in this context. But it’s required nevertheless. Please enter a 0.</li><br />
<li><b>Sp</b> is for the crawl speed. A value of 0.2 is a good start (i.e. easy to read).</li><br />
<li>Return value is true if the function was executed successfully, else false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPShowScrollInfoTextBottom()</th><br />
<th style="padding: 10px;">EEPShowScrollInfoTextBottom(R,G,B,Sz,T,J,Sz,"Text")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
r = 0 -- red <br />
g = 1 -- green <br />
b = 0.7 -- blue<br />
sz = 1 -- size<br />
t = 20 -- time <br />
j = 0 -- alignment<br />
sp = 0.2 -- velocity<br />
Text = "turkish blue crawl text for 20 Secs."<br />
<br />
EEPShowScrollInfoTextBottom(r,g,b,sz,t,j,sp,Text) <br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">eight</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 13 plug-In 1</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Displays a text crawl in the lower region of the 3D window.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li><b>R</b>, <b>G</b> and <b>B</b> define the percentage strength of each base colour. A value of 1 stands for maximum strength. The values 1,1,1 result in a white text.</li><br />
<li><b>Sz</b> is for the print size. A value of 1 is standard size. The maximum is 2 (for double size), the minimum is 0.5 (for half size).</li><br />
<li><b>T</b> defines the time the text is displayed for (in seconds). Minimum time is 5 seconds.</li><br />
<li><b>J</b> (for justification) serves no purpose in this context. But it’s required nevertheless. Please enter a 0.</li><br />
<li><b>Sp</b> is for the crawl speed. A value of 0.2 is a good start (i.e. easy to read).</li><br />
<li>Return value is true if the function was executed successfully, else false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPHideInfoTextTop()</th><br />
<th style="padding: 10px;">EEPHideInfoTextTop()</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPHideInfoTextTop()<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">none</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 13 plug-In 1</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Turns the info text in the upper region of the 3D window off.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>No arguments required.</li><br />
<li>Return value is true if the function was executed successfully, else false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPHideInfoTextBottom()</th><br />
<th style="padding: 10px;">EEPHideInfoTextBottom()</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPHideInfoTextBottom()<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">none</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 13 plug-In 1</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Turns the info text in the lower region of the 3D window off.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>No arguments required.</li><br />
<li>Return value is true if the function was executed successfully, else false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table></div>
Marc Horstmann
http://handbuch.eepshopping.de/index.php?title=Sound_Functions
Sound Functions
2018-09-08T13:27:53Z
<p>Marc Horstmann: Die Seite wurde neu angelegt: „ <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"> <tr> <th colspan="2">EEPStruc…“</p>
<hr />
<div> <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPStructurePlaySound()</th><br />
<th style="padding: 10px;">EEPStructurePlaySound("Lua-Name",true|false)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPStructurePlaySound("#1",true)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 13 plug-In 1</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Turns a speaker model on or off.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the Lua name of the structure as String. The preceding hash sign and ID are sufficient as a Lua name, everything that follows may be omitted.</li><br />
<li>Second argument is a Boolean to turn the sound on or off.</li><br />
<li>Return value is true if the targeted structure exists, else false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPPlaySound()</th><br />
<th style="padding: 10px;">EEPPlaySound("path/filename”)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPPlaySound("User/Bimmel.wav")<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 13 plug-In 1</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Plays a sound unrelated to any model or camera location.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>Only argument is the path and file name of a suitable mono wav file as a single string. The path is relative to “Resourcen/Sounds”.</li><br />
<li>Return value is true if the function was executed successfully, else false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table></div>
Marc Horstmann
http://handbuch.eepshopping.de/index.php?title=Tip_Text_Functions
Tip Text Functions
2018-09-08T12:17:32Z
<p>Marc Horstmann: Die Seite wurde neu angelegt: „ <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"> <tr> <th colspan="2">EEPChang…“</p>
<hr />
<div> <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPChangeInfoStructure()</th><br />
<th style="padding: 10px;">EEPChangeInfoStructure("Lua-Name","Text")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPChangeInfoStructure("#1", "Hallo")<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 13</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Assigns new text to the tip text of a structure.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the <b>Lua name</b> of the structure as String. The significant differences are the preceding hash sign and ID. These are sufficient as a Lua name and everything that follows may be omitted.</li><br />
<li>Second argument is the new text. Use \n for line feeds.</li><br />
<li>Return value is true if the targeted structure exists, else false.</li><br />
<li>This function can also be used for landscape elements because both, structures and landscape elements, share a common set of IDs</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPShowInfoStructure()</th><br />
<th style="padding: 10px;">EEPShowInfoStructure("Lua-Name",true|false)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPShowInfoStructure( "#1" , true ) <br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 13</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Turns the tip text of the specified structure on or off.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the <b>Lua name</b> of the structure as String. The significant differences are the preceding hash sign and ID. These are sufficient as a Lua name and everything that follows may be omitted.</li><br />
<li>Second argument is true for turning the tip text on and false for turning it off.</li><br />
<li>Return value is true if the targeted structure exists, else false.</li><br />
<li>This function can also be used for landscape elements because both, structures and landscape elements, share a common set of IDs</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPChangeInfoSignal()</th><br />
<th style="padding: 10px;">EEPChangeInfoSignal(ID,"Text")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPChangeInfoSignal(1, "Hello")<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 13</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Assigns new text to the tip text of a signal.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the ID of the signal.</li><br />
<li>Second argument is the new text. Use \n for line feeds.</li><br />
<li>Return value is true if the targeted signal exists, else false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPShowInfoSignal()</th><br />
<th style="padding: 10px;">EEPShowInfoSignal(ID,true|false)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPShowInfoSignal(1, true)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 13</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Turns the tip text of the specified signal on or off.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the ID of the signal.</li><br />
<li>Second argument is true for turning the tip text on and false for turning it off.</li><br />
<li>Return value is true if the targeted signal exists, else false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPChangeInfoSwitch()</th><br />
<th style="padding: 10px;">EEPChangeInfoSwitch(ID,"Text")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPChangeInfoSwitch(1, "Hello")<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 13</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Assigns new text to the tip text of a switch.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the ID of the switch.</li><br />
<li>Second argument is the new text. Use \n for line feeds.</li><br />
<li>Return value is true if the targeted switch exists, else false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPShowInfoSwitch()</th><br />
<th style="padding: 10px;">EEPShowInfoSwitch(ID,true|false)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPShowInfoSwitch(1, true)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 13</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Turns the tip text of the specified switch on or off.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the ID of the switch.</li><br />
<li>Second argument is true for turning the tip text on and false for turning it off.</li><br />
<li>Return value is true if the targeted signal exists, else false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table></div>
Marc Horstmann
http://handbuch.eepshopping.de/index.php?title=Virtual_Train_Depot_Functions
Virtual Train Depot Functions
2018-09-08T11:59:32Z
<p>Marc Horstmann: </p>
<hr />
<div> <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPGetTrainFromTrainyard()</th><br />
<th style="padding: 10px;">EEPGetTrainFromTrainyard(Depot,"TrainName",Num,Dir)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPGetTrainFromTrainyard(1,"#Rheingold",1)<br />
<br />
EEPGetTrainFromTrainyard(2 ,"", 4 , 1) <br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">four</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.3 plug-in 2, EEP 14.2 plug-In 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Sends a specified train from the specified virtual train depot.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the ID of the train depot. You can find the ID in the header of the depot’s properties window.</li><br />
<li>Second argument is the entire train name as a string. If you enter an empty string as a train name, the train is specified by the third argument.</li><br />
<li>Third argument is the position in the depot list. The train name in the second argument takes precedence over this number and must be an empty string for this number to take effect. <b>However</b>, a number must always be given. Enter 0 if you use the train’s name.</li><br />
<li><br />
New in EEP 14.2 plug-In 2: the fourt argument determines the driving direction:<br />
<ul><br />
<li>Dir = 0 (or omitted fourth argument) Driving direction as ruled by the depot.</li><br />
<li>Dir = 1 Driving direction forewards</li><br />
<li>Dir = 2 Driving direction backwards</li><br />
<li>Dir = 3 Driving direction against the one ruled by the depot.</li><br />
</ul><br />
</li><br />
<li>Return value is true if the targeted depot and train exist, regardless if the train is currently in the depot and available or not! It is false if either the depot doesn’t exist or the specified train is not listed in this depot.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPOnTrainExitTrainyard()</th><br />
<th style="padding: 10px;">EEPOnTrainExitTrainyard(Depot_ID,"TrainName")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
function EEPOnTrainExitTrainyard(Depot_ID,Zugname) <br />
print(""TrainName.." has left depot "..Depot_ID"") <br />
end <br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">none</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 14 Plug-In 1</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Called if a train leaves a virtual train depot.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>The first argument gives the depot's ID.</li><br />
<li>The second argument is the name of the leaving train.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPGetTrainyardItemsCount()</th><br />
<th style="padding: 10px;">EEPGetTrainyardItemsCount(Depot)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPGetTrainyardItemsCount(1)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 13.2 plug-in 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Returns the number of consists currently listed in teh specified depot</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>Argument is the depot’s ID.</li><br />
<li>Return value is the number of consists listed in the depot.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPGetTrainyardItemName()</th><br />
<th style="padding: 10px;">EEPGetTrainyardItemName(Depot,List)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPGetTrainyardItemName(1 , 2)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 13.2 plug-in 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Returns the name of a consist at a specified location in a specified depot.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the depot’s ID.</li><br />
<li>Second argument is the position in the depot list.</li><br />
<li>Return value is the name of the consist at the specified position.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPGetTrainyardItemStatus()</th><br />
<th style="padding: 10px;">EEPGetTrainyardItemStatus(Depot,"Lua-Name",Liste)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPGetTrainyardItemStatus(1 , "#FreightTrain" , 0)<br />
<br />
EEPGetTrainyardItemStatus(1 , "" , 3)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">three</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 13.2 plug-in 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Returns the status of a specified train in a specified depot</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the depot’s ID. </li><br />
<li>Second argument is the name of the consist. Enter an empty string if you want to specify the consist by it’s list number.</li><br />
<li>Third argument is the list position. This entry is ignored when a name is provided as a second argument. It is however mandatory and should be set to 0 if the name ist o be used.</li><br />
<li>Return value is the status of the specified consist: <br />
<ul><br />
<li>true = waiting</li><br />
<li>false = running</li><br />
</ul><br />
</li><br />
</ul><br />
</td><br />
</tr><br />
</table></div>
Marc Horstmann
http://handbuch.eepshopping.de/index.php?title=Layout_Functions
Layout Functions
2018-09-08T11:26:39Z
<p>Marc Horstmann: Die Seite wurde neu angelegt: „ <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"> <tr> <th colspan="2">EEPLoadP…“</p>
<hr />
<div> <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPLoadProject()</th><br />
<th style="padding: 10px;">EEPLoadProject("FileName")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPLoadProject("Tutorials\\Tutorial_54_LUA.anl3")<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.3 Plug-in 3</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Loads another layout from the specified subfolder of “Anlagen”.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>Argument is the path (if needed) inside the folder “Anlagen” and the file name including the .anl3 suffix.</li><br />
<li>Separating character between folder and file name is a <b>double</b> backslash.</li><br />
<li>Return value is true if the required layout exists, else false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table></div>
Marc Horstmann
http://handbuch.eepshopping.de/index.php?title=Camera_Functions
Camera Functions
2018-09-08T10:02:06Z
<p>Marc Horstmann: Die Seite wurde neu angelegt: „ <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"> <tr> <th colspan="2">EEPSetCa…“</p>
<hr />
<div> <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPSetCamera()</th><br />
<th style="padding: 10px;">EEPSetCamera(Type,"Name")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPSetCamera(0,"Station")<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.3 Plug-in 3</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Activates a stored camera position.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li><br />
First argument is the type of camera:<br />
<ul><br />
<li>0=static</li><br />
<li>1=dynamic</li><br />
<li>2= mobile camera</li><br />
</ul><br />
</li><br />
<li>Second argument is the name of the camera as a string.</li><br />
<li>Return value is true if the targeted camera exists, else false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPSetPerspectiveCamera()</th><br />
<th style="padding: 10px;">EEPSetPerspectiveCamera(ID,"TrainName")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPSetPerspectiveCamera(1,"#Passenger train")<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.3 Plug-in 3, EEP 14.2 Plug-In 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Activates a camera connected to the specified train.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the relative position of the camera and matches selection 1 to 9 on your keyboard (i.e. 1 = straight left, 2 = straight right, ..., 8 = cockpit camera etc.).</li><br />
<li>Second argument is the train name as a string.</li><br />
<li>New in EEP 14.2 Plug-In 2: if the second parameter is omitted, the camera gets aimed at the active train.</li><br />
<li>Return value is true, if the targeted train and camera exist, else false.</li><br />
<li>Calling this camera while it is already active turns off the follow mode.</li><br />
</ul><br />
</td><br />
</tr><br />
</table></div>
Marc Horstmann
http://handbuch.eepshopping.de/index.php?title=Track_Functions
Track Functions
2018-09-08T09:41:17Z
<p>Marc Horstmann: Die Seite wurde neu angelegt: „ <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"> <tr> <th colspan="2">EEPRegis…“</p>
<hr />
<div> <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPRegister<font color=red>_X_</font>Track()</th><br />
<th style="padding: 10px;">EEPRegister<font color=red>_X_</font>Track(ID)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPRegisterRailTrack(1)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.3 plug-in 3</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Registers a track element for “occupied” enquiries.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>The <font color=red>_X_</font> is to be substituted by one of the following strings:<br />
<ul><br />
<li>Rail: for the rail track system.</li><br />
<li>Road: for the street system.</li><br />
<li>Tram: for the commuter tracks system.</li><br />
<li>Auxiliary: for the auxiliary track system</li><br />
<li>Control: for the control track system</li><br />
</ul><br />
</li><br />
<li>Argument is the ID of the track element.</li><br />
<li>Return value is true, if the targeted track exists, else false.</li><br />
<li>Registration is mandatory for EEPIs<font color=red>_X_</font>TrackReserved() function.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPIs<font color=red>_X_</font>TrackReserved()</th><br />
<th style="padding: 10px;">EEPIs<font color=red>_X_</font>TrackReserved(ID)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
hResult, hData = EEPIsRailTrackReserved(1,true)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">one (optional two)</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">two (optional three)</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.3 plug-in 3, EEP 13.2 plug-in 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Enquires if the specified track element is occupied by any vehicle.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li><br />
The <font color=red>_X_</font> is to be substituted by one of the following strings:<br />
<ul><br />
<li>Rail: for the rail track system.</li><br />
<li>Road: for the street system.</li><br />
<li>Tram: for the commuter tracks system.</li><br />
<li>Auxiliary: for the auxiliary track system</li><br />
<li>Control: for the control track system</li><br />
</ul><br />
</li><br />
<li>Argument is the ID of the track element.</li><br />
<li>An optional second argument may be added when plug-in 2 for EEP 13 is installed. If true is provided as a second argument, the name of the train occupying this track is returned as a third value.</li><br />
<li>First return value is true, if the targeted track element exists and has been registered prior to the enquiry.</li><br />
<li>Second return value is true, if the track element is occupied, else false.</li><br />
<li>Third return value is the name of the train occupying this track. If more than one train occupies this track, the name of the train closest to the track’s end is returned.</li><br />
<li>Remember to register track before using this function!</li><br />
</ul><br />
</td><br />
</tr><br />
</table></div>
Marc Horstmann
http://handbuch.eepshopping.de/index.php?title=Cargo_Functions
Cargo Functions
2018-09-08T09:03:19Z
<p>Marc Horstmann: Die Seite wurde neu angelegt: „ <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"> <tr> <th colspan="2">EEPGoods…“</p>
<hr />
<div> <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPGoodsSetPosition()</th><br />
<th style="padding: 10px;">EEPGoodsSetPosition("Lua_Name",Pos_X,Pos_Y,Pos_Z)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPGoodsSetPosition( "#1", Pos_X, Pos_Y, Pos_Z ) <br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">four</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 14.2 Plug-In 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Changes the position of a cargo model on the layout.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the Lua-name of the cargo. The number with a preceding # is sufficient.</li><br />
<li>Second argument is the new x position of the cargo model.</li><br />
<li>Third argument is the new y position of the cargo model.</li><br />
<li>Fourth argument is the new z position of the cargo model.</li><br />
<li>Return value is true if the method was successfully executed; false otherwise.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPGoodsGetPosition()</th><br />
<th style="padding: 10px;">EEPGoodsGetPosition("Lua_Name")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
hResult, Pos_X, Pos_Y, Pos_Z = EEPGoodsGetPosition( "#1" ) <br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">four</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 14.2 Plug-In 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Enquires the position of a cargo model.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>Argument is the Lua-name of the cargo. The number with a preceding # is sufficient.</li><br />
<li>First return value is true if the method was successfully executed; false otherwise.</li><br />
<li>Second return value is the x position of the cargo model.</li><br />
<li>Third return value is the y position of the cargo model.</li><br />
<li>Fourth return value is the z position of the cargo model.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPGoodsSetRotation()</th><br />
<th style="padding: 10px;">EEPGoodsSetRotation("Lua_Name",Rot_X,Rot_Y,Rot_Z)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPGoodsSetRotation( "#1", Rot_X, Rot_Y, Rot_Z ) <br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">four</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 14.2 Plug-In 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Changes the orientation of a cargo model.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the Lua-name of the cargo. The number with a preceding # is sufficient.</li><br />
<li>Second argument is the new x orientation of the cargo model.</li><br />
<li>Third argument is the new y orientation of the cargo model.</li><br />
<li>Fourth argument is the new z orientation of the cargo model.</li><br />
<li>Return value is true if the method was successfully executed; false otherwise.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPGoodsGetModelType()</th><br />
<th style="padding: 10px;">EEPGoodsGetModelType("Lua_Name")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
hResult, Typ = EEPGoodsGetModelType( "#1" )<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 14.2 Plug-In 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;"></td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>Argument is the Lua-name of the cargo.</li><br />
<li>First return value is true if the method was successfully executed; false otherwise.</li><br />
<li>Second return value is the category the designer of the cargo model assigned to it:<br />
<ul><br />
<li>20 = boxes</li><br />
<li>21 = cylinders</li><br />
</ul><br />
</li><br />
</ul><br />
</td><br />
</tr><br />
</table></div>
Marc Horstmann
http://handbuch.eepshopping.de/index.php?title=Structure_Functions
Structure Functions
2018-09-08T08:41:09Z
<p>Marc Horstmann: Die Seite wurde neu angelegt: „ <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"> <tr> <th colspan="2">EEPStruct…“</p>
<hr />
<div> <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPStructureSetSmoke()</th><br />
<th style="padding: 10px;">EEPStructureSetSmoke("Lua-Name",true|false)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPStructureSetSmoke("#1_Lauscha_trainstation", true)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.1 Plug-in 1</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Turns the smoke (e.g. chimney smoke) of a structure on or off.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the <b>Lua name</b> of the structure as string. The significant differences are the preceding hash sign and ID. These are sufficient as a Lua name and everything that follows may be omitted.</li><br />
<li>Second argument is true to turn the smoke on or false to turn it off.</li><br />
<li>Return value is true if the targeted structure exists and has a smoke feature, else false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPStructureGetSmoke()</th><br />
<th style="padding: 10px;">EEPStructureGetSmoke("Lua-Name")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
Name = "#1_Lauscha_train station"<br />
<br />
hResult, hData = EEPStructureGetSmoke(Name)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.1 Plug-in 1</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Enquires if the smoke (e.g. chimney smoke) of a structure is currently turned on or off.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>Argument is the <b>Lua name</b> of the structure as string. The significant differences are the preceding hash sign and ID. These are sufficient as a Lua name and everything that follows may be omitted.</li><br />
<li>First return value is true if the targeted structure exists and has a smoke feature, else false.</li><br />
<li>Second return value is true if the smoke is turned on and false if it is off.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPStructureSetLight()</th><br />
<th style="padding: 10px;">EEPStructureSetLight("Lua-Name",true|false)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPStructureSetLight("#B52_LoveShack", true)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.1 Plug-in 1</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Turns the lights of a structure on or off.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the <b>Lua name</b> of the structure as string. The significant differences are the preceding hash sign and ID. These are sufficient as a Lua name and everything that follows may be omitted.</li><br />
<li>Second argument is true to turn the lights on or false to turn them off.</li><br />
<li>Return value is true if the targeted structure exists and has a light feature, else false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPStructureGetLight()</th><br />
<th style="padding: 10px;">EEPStructureGetLight("Lua-Name")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
myName = "#B52_LoveShack"<br />
<br />
hResult, hData = EEPStructureGetLight(myName)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.1 Plug-in 1</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Enquires if the lights of a structure are currently turned on or off.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>Argument is the <b>Lua name</b> of the structure as string. The significant differences are the preceding hash sign and ID. These are sufficient as a Lua name and everything that follows may be omitted.</li><br />
<li>First return value is true if the targeted structure exists and has a light feature, else false.</li><br />
<li>Second return value is true if the lights are turned on and false if they are off or in automatic mode.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPStructureSetFire()</th><br />
<th style="padding: 10px;">EEPStructureSetFire("Lua-Name",true|false)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPStructureSetFire("#1_Brandhaus_01_SB1", true)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.1 Plug-in 1</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Turns the fire feature of a structure on or off.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the <b>Lua name</b> of the structure as string. The significant differences are the preceding hash sign and ID. These are sufficient as a Lua name and everything that follows may be omitted.</li><br />
<li>Second argument is true to activate the fire or false to deactivate it.</li><br />
<li>Return value is true if the targeted structure exists and has a fire feature, else false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPStructureGetFire()</th><br />
<th style="padding: 10px;">EEPStructureGetFire("Lua-Name")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
Name = "#1_Brandhaus_01_SB1"<br />
<br />
hResult, hData = EEPStructureGetFire(Name)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.1 Plug-in 1</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Enquires if the fire feature of a structure is currently turned on or off.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>Argument is the <b>Lua name</b> of the structure as string. The significant differences are the preceding hash sign and ID. These are sufficient as a Lua name and everything that follows may be omitted.</li><br />
<li>First return value is true if the targeted structure exists and has a fire feature, else false.</li><br />
<li>Second return value is true if the fire is turned on and false if it is off.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPStructureAnimateAxis()</th><br />
<th style="padding: 10px;">EEPStructureAnimateAxis("Lua-Name","Axis",Position)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPStructureAnimateAxis("#1_Windmill","Rotor", 1000)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">three</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.1 Plug-in 1</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Moves the specified axis of the specified structure or track-side object.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the <b>Lua name</b> of the structure as string. The significant differences are the preceding hash sign and ID. These are sufficient as a Lua name and everything that follows may be omitted.</li><br />
<li>Second argument is the entire name of the axis as a string.</li><br />
<li>The third argument is the (positive or negative) number of steps the axis shall move. A value of 1000 bzw. -1000 starts an endless motion if the model was built for it (e.g. sails of a windmill). A value of 0 stops any motion.</li><br />
<li>Return value is true if the targeted structure and the targeted axis exist, else false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPStructureIsAxisAnimate()</th><br />
<th style="padding: 10px;">EEPStructureIsAxisAnimate("Lua_Name","Achse")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
hResult, Status = EEPStructureIsAxisAnimate("#1","Bridge") <br />
if Status > 0 then <br />
print( "The turntable is moving." )<br />
end<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;"> EEP 14.2 Plug-In 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;"></td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the <b>Lua name</b> of the structure as string. The significant differences are the preceding hash sign and ID. These are sufficient as a Lua name and everything that follows may be omitted.</li><br />
<li>Second argument is the entire name of the axis as a string.</li><br />
<li>First return value is true if the targeted structure and the targeted axis exist, else false.</li><br />
<li><br />
Second return value is:<br />
<ul><br />
<li>0 = the axis is not moving.</li><br />
<li>1 = the axis is moving in an infinite loop.</li><br />
<li>2 = the axis is moving but will come to rest in finite time.</li><br />
</ul><br />
</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPStructureSetAxis()</th><br />
<th style="padding: 10px;">EEPStructureSetAxis("Lua-Name","Axis",Position)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPStructureSetAxis("#1_Turntable", "Bridge", 50)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">three</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.1 Plug-in 1</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Sets the specified axis of the specified structure or track-side object to a new position.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the <b>Lua name</b> of the structure as string. The significant differences are the preceding hash sign and ID. These are sufficient as a Lua name and everything that follows may be omitted.</li><br />
<li>Second argument is the entire name of the axis as a string.</li><br />
<li>Third argument is the new position of the specified axis.</li><br />
<li>Return value is true if the targeted structure and the targeted axis exist, else false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPStructureGetAxis()</th><br />
<th style="padding: 10px;">EEPStructureGetAxis("Lua-Name","Axis")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
hResult, hData = EEPStructureGetAxis("#1_Turntable","Bridge")<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.1 Plug-in 1</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Enquires the position of the specified axis of the specified structure or track-side object.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the <b>Lua name</b> of the structure as string. The significant differences are the preceding hash sign and ID. These are sufficient as a Lua name and everything that follows may be omitted.</li><br />
<li>Second argument is the entire name of the axis as a string.</li><br />
<li>First return value is true if the targeted structure and the targeted axis exist, else false.</li><br />
<li>Second return value is the current position of the specified axis.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPStructureSetPosition()</th><br />
<th style="padding: 10px;">EEPStructureSetPosition("Lua-Name",PosX,PosY,PosZ)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPStructureSetPosition("#1_Strawball", 1, 2, 3)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">four</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.1 Plug-in 1</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Places the specified structure or track-side object at a new position.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the <b>Lua name</b> of the structure as string. The significant differences are the preceding hash sign and ID. These are sufficient as a Lua name and everything that follows may be omitted.</li><br />
<li>Second argument is the new x position of the structure.</li><br />
<li>Third argument is the new y position of the structure.</li><br />
<li>Fourth argument is the new z position of the structure.</li><br />
<li>Structures cannot be placed outside a layout’s boundaries.</li><br />
<li>Return value is true if the targeted structure exists and the new position is within the layout’s boundaries, else false.</li><br />
<li>Function can also be used for landscape elements because both, structures and landscape elements, share a common set of IDs.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPStructureGetPosition()</th><br />
<th style="padding: 10px;">EEPStructureGetPosition("Lua_Name")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
hResult, Pos_X, Pos_Y, Pos_Z = EEPStructureGetPosition("#1") <br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">four</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 14.2 Plug-In 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Enquires the position of a structure or a landscape element.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the <b>Lua name</b> of the structure as string. The significant differences are the preceding hash sign and ID. These are sufficient as a Lua name and everything that follows may be omitted.</li><br />
<li>First return value is true if the method was successfully executed; false otherwise.</li><br />
<li>Second return value is the x position of the structure.</li><br />
<li>Third return value is the y position of the structure.</li><br />
<li>Fourth return value is the z position of the structure.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPStructureSetRotation()</th><br />
<th style="padding: 10px;">EEPStructureSetRotation("Lua-Name",RotX,RotY,RotZ)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPStructureSetRotation("#1_Strawball", 0, 0, 25)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">four</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.1 Plug-in 1</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Rotates the specified structure or track-side object to a new position.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the <b>Lua name</b> of the structure as string. The significant differences are the preceding hash sign and ID. These are sufficient as a Lua name and everything that follows may be omitted.</li><br />
<li>Second argument is the new x rotation of the structure.</li><br />
<li>Third argument is the new y rotation of the structure.</li><br />
<li>Fourth argument is the new z rotation of the structure.</li><br />
<li>Return value is true if the targeted structure exists, else false.</li><br />
<li>Function can also be used for landscape elements because both, structures and landscape elements, share a common set of IDs.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPStructureGetModelType()</th><br />
<th style="padding: 10px;">EEPStructureGetModelType("Lua_Name")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
hResult , Typ = EEPStructureGetModelType( "#1" )<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP14.2 Plug-In 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Enquires the model type category of the structure.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>Argument is the <b>Lua name</b> of the structure as string. The significant differences are the preceding hash sign and ID. These are sufficient as a Lua name and everything that follows may be omitted.</li><br />
<li>First return value is true if the method was successfully executed; false otherwise.</li><br />
<li>Second return value is the category the designer of the model assigned to it:<br />
<ul><br />
<li>16 = Tracks/Track objects</li><br />
<li>17 = Tramtracks/Tramtrack objects</li><br />
<li>18 = Streets/Street objects</li><br />
<li>19 = Other/Other objects</li><br />
<li>22 = Real estate</li><br />
<li>23 = landscape elements/Fauna</li><br />
<li>24 = landscape elements/Flora</li><br />
<li>25 = landscape elements/Terra</li><br />
<li>38 = landscape elements/Instancing</li><br />
</ul><br />
</li><br />
</ul><br />
</td><br />
</tr><br />
</table></div>
Marc Horstmann
http://handbuch.eepshopping.de/index.php?title=Rolling_Stock_Functions
Rolling Stock Functions
2018-09-07T16:02:30Z
<p>Marc Horstmann: Die Seite wurde neu angelegt: „ <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"> <tr> <th colspan="2">EEPRolli…“</p>
<hr />
<div> <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPRollingstockSetCouplingFront()</th><br />
<th style="padding: 10px;">EEPRollingstockSetCouplingFront("Name",Coupler)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPRollingstockSetCouplingFront("Castor1;001", 1)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.0</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Activates or deactivates the front coupler of the specified rolling stock.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the entire name of the rolling stock as a string.</li><br />
<li><br />
Second argument is the desired condition of the front coupler:<br />
<ul><br />
<li>1 = activate coupler (couples on contact when opposing coupler is also active)</li><br />
<li>2 = deactivate coupler</li><br />
</ul><br />
</li><br />
<li>Return value is true if the targeted rolling stock exists, else false</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPRollingstockGetCouplingFront()</th><br />
<th style="padding: 10px;"> EEPRollingstockGetCouplingFront("Name")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
hResult, hData = EEPRollingstockGetCouplingFront("Castor1;001")<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.0</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Enquires the current condition of the front coupler of the specified rolling stock.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>Argument is the entire name of the rolling stock as a string.</li><br />
<li>First return value is true if the targeted rolling stock exists, else false.</li><br />
<li><br />
Second return value is the condition of the front coupler:<br />
<ul><br />
<li>1 = active</li><br />
<li>2 = inactive</li><br />
<li>3 = coupled</li><br />
</ul><br />
</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPRollingstockSetCouplingRear()</th><br />
<th style="padding: 10px;">EEPRollingstockSetCouplingRear("Name",Coupler)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPRollingstockSetCouplingRear("fals 175 Kalk", 1)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.0</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Activates or deactivates the rear coupler of the specified rolling stock.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the entire name of the rolling stock as a string.</li><br />
<li><br />
Second argument is the desired condition of the rear coupler:<br />
<ul><br />
<li>1 = activate coupler (couples on contact when opposing coupler is also active)</li><br />
<li>2 = deactivate coupler</li><br />
</ul><br />
</li><br />
<li>Return value is true if the targeted rolling stock exists, else false</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPRollingstockGetCouplingRear()</th><br />
<th style="padding: 10px;"> EEPRollingstockGetCouplingRear("Name")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
Name = "fals 175 Kalk"<br />
hResult, hData = EEPRollingstockGetCouplingRear(Name)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.0</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Enquires the current condition of the rear coupler of the specified rolling stock.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>Argument is the entire name of the rolling stock as a string.</li><br />
<li>First return value is true if the targeted rolling stock exists, else false.</li><br />
<li><br />
Second return value is the condition of the rear coupler:<br />
<ul><br />
<li>1 = active</li><br />
<li>2 = inactive</li><br />
<li>3 = coupled</li><br />
</ul><br />
</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPRollingstockSetAxis()</th><br />
<th style="padding: 10px;">EEPRollingstockSetAxis("Name","Axis",Position)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
Name = "CoalPortalCrane"<br />
Axis = "Turn left"<br />
EEPRollingstockSetAxis(Name, Axis, 50)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">three</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.0</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Moves the specified axis of the specified rolling stock to the desired position.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the entire name of the rolling stock as a string.</li><br />
<li>Second argument is the entire name of the axis as a string.</li><br />
<li>Third argument is the target position for the axis.</li><br />
<li>Return value is true if the targeted rolling stock and axis exist, else false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPRollingstockGetAxis()</th><br />
<th style="padding: 10px;">EEPRollingstockGetAxis("Name","Axis")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
Name = "CoalPortalCrane 1"<br />
Axis = "Turn left"<br />
hResult, hData = EEPRollingstockGetAxis(Name, Axis)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.0</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Enquires the current position of the specified axis of the specified rolling stock.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the entire name of the rolling stock as a string.</li><br />
<li>Second argument is the entire name of the axis as a string.</li><br />
<li>First return value is true if the targeted rolling stock and axis exist, else false</li><br />
<li>Second return value is the current position.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPRollingstockSetSlot()</th><br />
<th style="padding: 10px;">EEPRollingstockSetSlot("Name",Slot)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPRollingstockSetSlot("PortalCrane2 Grabber", 1)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">tw</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.0</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Moves all axiis of the specified rolling stock to the position saved in a slot.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First set all axiis to the wanted position and store this condition in one of 16 slots (context menu). Now you can use this Lua function to trigger an animation from the current setting of all axiis to the stored position.</li><br />
<li>First argument is the entire name of the rolling stock as a string.</li><br />
<li>Second argument is the number of the slot in which the wanted position was stored.</li><br />
<li>Return value is true if the targeted rolling stock and the slot exist, else false.</li><br />
<li>It is not verified that slot actually contains any settings.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPGetRollingstockItemsCount()</th><br />
<th style="padding: 10px;">EEPGetRollingstockItemsCount("Name")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPGetRollingstockItemsCount("#FreightTrain")<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 13.2 plug-in2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Returns the number of vehicles a specified train consists of</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>Argument is the complete name of a train consist as string.</li><br />
<li>Return value ist he sum of all rolling stock items in this train consist. No distinction is made between engine, tender, waggon or special items like separate bogeys.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPGetRollingstockItemName()</th><br />
<th style="padding: 10px;">EEPGetRollingstockItemName("Name",Number)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPGetRollingstockItemName("#FreightTrain",3)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 13.2 plug-in2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Returns the name of a specified vehicle in a specified consist</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the complete name of a train consist as string.</li><br />
<li>Second argument is the position number of one item. The count begins with 0.</li><br />
<li>Return value ist he name oft he specified vehicle.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPRollingstockGetTrainName()</th><br />
<th style="padding: 10px;">EEPRollingstockGetTrainName("Name")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
hResult, Name = EEPRollingstockGetTrainName("Castor 1" ) <br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 14.2 Plug-In 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Enquires the name of the train the rolling stock is a member of.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>The argument is the name of the rolling stock.</li><br />
<li>First return value is true, if the execution was successfull, otherwise false</li><br />
<li>Second return value is the name of the train.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPRollingstockGetLength()</th><br />
<th style="padding: 10px;">EEPRollingstockGetLength("Name")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
hResult, Laenge = EEPRollingstockGetLength("Container 0100") <br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 14.2 Plug-In 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Gets the length of a vehicle.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>The argument is the name of the vehicle.</li><br />
<li>First return value is true, if execution was successfull, false otherwise.</li><br />
<li>Second return value is the length of the consist from coupling to coupling in meters.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPRollingstockGetMotor()</th><br />
<th style="padding: 10px;">EEPRollingstockGetMotor("Name")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
hResult, Motor = EEPRollingstockGetMotor("DB_360_339") <br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 14.2 Plug-In 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Enquires wether there is a motor to a vehicle.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>The argument is the name of the vehicle.</li><br />
<li>First return value is true, if execution was successfull, false otherwise.</li><br />
<li>Second return value is true if the vehicle is motorized.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPRollingstockGetTrack()</th><br />
<th style="padding: 10px;">EEPRollingstockGetTrack("Name")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
hResult, ID, Position, Richtung, System = EEPRollingstockGetTrack( "BR 212 376-8" ) <br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">five</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 14.2 Plug-In 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Enquires the current position of the vehicle on the track system.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>The argument is the name of the vehicle.</li><br />
<li>1. return value is true, if execution was successfull, false otherwise.</li><br />
<li>2. return value is the id of the track, the vehicle sits on.</li><br />
<li>3. return value is the distance (in meters) to the front end of the track.</li><br />
<li>4. return value gives the orientation relative t the track (1 = parallel to the track, 0=anti parallel)</li><br />
<li><br />
5. return value is the ID of the track sysstem, the vehicle sits on:<br />
<ul><br />
<li>1 = railroad tracks</li><br />
<li>2 = streets</li><br />
<li>3 = subway and tram tracks</li><br />
<li>4 = other</li><br />
</ul><br />
</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPRollingstockGetModelType()</th><br />
<th style="padding: 10px;">EEPRollingstockGetModelType("VehicleName")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
hResult , Typ = EEPRollingstockGetModelType( "Castor 1" ) <br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 14.2 Plug-In 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Enquires the model category a rolling stock belongs to.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>The argument is the name of the vehicle.</li><br />
<li>First return value is true, if execution was successfull, false otherwise.</li><br />
<li>Second return value is the category the creator of the model has assignet to it:<br />
<ul><br />
<li>1 = tank locomotive</li><br />
<li>2 = tender locomotive</li><br />
<li>3 = tender</li><br />
<li>4 = electric locomotive</li><br />
<li>5 = diesel locomotive</li><br />
<li>6 = railcar</li><br />
<li>7 = communter train</li><br />
<li>8 = tram</li><br />
<li>9 = freight waggons</li><br />
<li>10 = person transport</li><br />
<li>11 = aero vehicles</li><br />
<li>12 = machines (e.g. cranes)</li><br />
<li>13 = ships</li><br />
<li>14 = trucks</li><br />
<li>15 = cars</li><br />
</ul> <br />
</li><br />
</ul><br />
</td><br />
</tr><br />
</table></div>
Marc Horstmann
http://handbuch.eepshopping.de/index.php?title=Train_Functions
Train Functions
2018-09-07T14:31:14Z
<p>Marc Horstmann: </p>
<hr />
<div><br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPSetTrainSpeed()</th><br />
<th style="padding: 10px;">EEPSetTrainSpeed("#Name",TargetSpeed)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPSetTrainSpeed("#Passenger train", 80)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.0</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Assigns new target speed to the specified train.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the entire train name as a string.</li><br />
<li>Second argument is the desired speed. Use negative values for opposite direction.</li><br />
<li>A possible current signal influence is cancelled (i.e. a train currently stopped by a signal will move!).</li><br />
<li>Return value is true if the targeted train exists, else false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPGetTrainSpeed()</th><br />
<th style="padding: 10px;">EEPGetTrainSpeed("#Name")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
hResult, hData = EPGetTrainSpeed("#VT98;001")<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.0</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Enquires the current speed of the specified train.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>Argument is the complete train name as a string.</li><br />
<li>First return value is true if the targeted train exists, else false.</li><br />
<li>Second return value is the train’s current speed.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPSetTrainRoute()</th><br />
<th style="padding: 10px;">EEPSetTrainRoute("#Name","Route")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPSetTrainRoute("#Passenger train", "Route")<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.2 Plug-in 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Assigns a route to the specified train.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the entire train name as a string.</li><br />
<li>Second argument is the desired Route as a string.</li><br />
<li>Return value is true if the specified route and train exist, false if either one doesn’t exist.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPGetTrainRoute()</th><br />
<th style="padding: 10px;">EEPGetTrainRoute("#Name")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
hResult, hData = EEPGetTrainRoute("#Personenzug")<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.2 Plug-in 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Enquires the current route of the specified train.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>Argument is the entire train name as a string.</li><br />
<li>First return value is true if the targeted train exists, else false.</li><br />
<li>Second return value is the train’s current route as a string.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPSetTrainLight()</th><br />
<th style="padding: 10px;">EEPSetTrainLight("#Name",true|false)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPSetTrainLight("#Passenger train",true)<br />
<br />
EEPSetTrainLight( "#Ford_Transit", 1 , true ) <br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two or three</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;"><br />
EEP 11.2 Plug-in 2,<br />
EEP 14.2 Plug-In 2<br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Switches the lights or the turn signals of the specified train on or off.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the entire train name as a string.</li><br />
<li><br />
Second argument is the source of the light<br />
<ul><br />
<li>0 for the normal driving lights and the interior illumination.</li><br />
<li>1 for the left turn signal.</li><br />
<li>2 for the right turn signal.</li><br />
</ul><br />
</li><br />
<li>Third argument is either true (i.e. lights on) or false (i.e. lights off).</li><br />
<li>Return value is true if the targeted train exists, else false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPSetTrainSmoke()</th><br />
<th style="padding: 10px;">EEPSetTrainSmoke("#Name",true|false)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPSetTrainSmoke("#Passenger train",true)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.2 Plug-in 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Turns the smoke and steam of the specified train on or off.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the entire train name as a string.</li><br />
<li>Second argument is either true (i.e. smoke on) or false (i.e. smoke off).</li><br />
<li>Return value is true if the targeted train exists, else false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPSetTrainHorn()</th><br />
<th style="padding: 10px;">EEPSetTrainHorn("#Name",true|false)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPSetTrainHorn("#Passenger train",true)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.2 Plug-in 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Turns the warning sound of the specified train on or off.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the entire train name as a string.</li><br />
<li>Second argument is true to sound the horn, whistle etc. and false to mute it.</li><br />
<li>Return value is true if the targeted train exists, else false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPTrainLooseCoupling()</th><br />
<th style="padding: 10px;">EEPTrainLooseCoupling("#Name",true|false,Position,"#Name")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPTrainLooseCoupling("#FreightTrain", true, 3, "#Waggons") <br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">three</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.2 Plug-in 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Separates a train consist after the specified number of vehicles.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the entire train name as a string.</li><br />
<li>Second argument defines if you count vehicles from the front or the rear.</li><br />
<li>Third argument defines the position at which the train is split.</li><br />
<li>An optional fourth argument provides the new train name for the detached train section.</li><br />
<li>Return value is true if the targeted train and the specified position exist, else false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPSetTrainCouplingFront()</th><br />
<th style="padding: 10px;">EEPSetTrainCouplingFront("#Name",true|false)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPSetTrainCouplingFront("#Freight train", true)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.2 Plug-in 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Activates or deactivates the front coupler of a train consist.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the entire train name as a string.</li><br />
<li>Second argument is true (i.e. couple on contact) or false (i.e. don’t couple).</li><br />
<li>Return value is true if the targeted train exists, else false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPSetTrainCouplingRear()</th><br />
<th style="padding: 10px;">EEPSetTrainCouplingRear("#Name",true|false)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPSetTrainCouplingRear("#Freight train", true)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.2 Plug-in 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Activates or deactivates the rear coupler of a train consist.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the entire train name as a string.</li><br />
<li>Second argument is true (i.e. couple on contact) or false (i.e. don’t couple).</li><br />
<li>Return value is true if the targeted train exists, else false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPOnTrainCoupling()</th><br />
<th style="padding: 10px;">EEPOnTrainCoupling("Train_A","Train_B","Train_new")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
function EEPOnTrainCoupling(Train_A, Train_B, Train_new) <br />
print( ""Train_A.." and "..Train_B.." became "..Train_new"") <br />
end <br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">three</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">none</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 14 Plug-In 1</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Called if two trains are coupled.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>Argument 1 is the name of the train that was faster moving and therefore was the source of the ID for the resulting train.</li><br />
<li>Argument 2 is the name of the slower moving train, whiches ID therefore was lost.</li><br />
<li>Argument 3 is the name of the new train.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPOnTrainLooseCoupling()</th><br />
<th style="padding: 10px;">EEPOnTrainLooseCoupling("Train_A","Train_B","Train_old")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
function EEPOnTrainLooseCoupling(Train_A, Train_B, Train_old) <br />
print( ""Train_old.." divided in "..Train_A.." und "..Train_B"") <br />
end <br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">three</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">none</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 14 Plug-In 1</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Called if a train gets split.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>Argument 1 is the name of the resulting train, whiches coupling was deactivated. This part inherits the ID of the original train.</li><br />
<li>Argument 2 is the name of the uncoupled part of the train. It gets assigned a new ID.</li><br />
<li>Argument 3 is the name of the original train.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPSetTrainHook()</th><br />
<th style="padding: 10px;">EEPSetTrainHook("#Name",true|false)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPSetTrainHook("#Rail Crane", true)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.2 Plug-in 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Activates or deactivates the hook of the specified train for lifting goods.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the entire train name as a string.</li><br />
<li>Second argument is true (i.e. hook) or false (i.e unhook).</li><br />
<li>Return value is true if the targeted train exists, else false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPSetTrainAxis()</th><br />
<th style="padding: 10px;">EEPSetTrainAxis("#Name","Axis",Position)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPSetTrainAxis("#Rail Crane", "Turn To The Left”, 100)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">three</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.2 Plug-in 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Animates the specified axis of the specified train.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the entire train name as a string.</li><br />
<li>Second argument is the name of the axis as a string.</li><br />
<li>Third argument is the target position of the axis.</li><br />
<li>Return value is true if the targeted train and the axis exist, else false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPSetTrainName()</th><br />
<th style="padding: 10px;">EEPSetTrainName("OldTrainName","NewTrainName")</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
hResult = EEPSetTrainName("#RE 1","#RE 5") <br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 14 Plug-In 1</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Assignes a name to a train.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>The first argument is the actual name of the train.</li><br />
<li>The second argument is the new name of the train.</li><br />
<li>Returns true if the train was successfully renamed.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPSetTrainHookGlue()</th><br />
<th style="padding: 10px;">EEPSetTrainHookGlue("TrainName",true|false)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPSetTrainHookGlue("#CraneTrain",true) <br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 14.2 Plug-In 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Influences the behaviour of hooked goods.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>The first argument is the name of the train.</li><br />
<li><br />
The second argument defines the behaviour:<br />
<ul><br />
<li>false = Goods are swinging (appropriate for hooks)</li><br />
<li>true = Goods are fixed (appropriate for grabbers)</li><br />
</ul><br />
</li><br />
<li>The return value is true if the function was successfully executed.</li><br />
</ul><br />
</td><br />
</tr><br />
</table></div>
Marc Horstmann
http://handbuch.eepshopping.de/index.php?title=Storage_Functions
Storage Functions
2018-09-07T13:01:45Z
<p>Marc Horstmann: Die Seite wurde neu angelegt: „ <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"> <tr> <th colspan="2">EEPSave…“</p>
<hr />
<div><br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPSaveData()</th><br />
<th style="padding: 10px;">EEPSaveData(Slot,Value|"String"|Boolean|nil)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPSaveData(1, 42) -- store value<br />
EEPSaveData(2, "I am slot 2") -- store string<br />
EEPSaveData(3, true) -- store boolean<br />
EEPSaveData(4, nil) -- delete<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.0</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Permanent data storage. The saved data is stored in the same file as the user’s Lua program but isn’t visible in the EEP Lua editor. Prevents data loss when script is re-loaded</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>Provides a means for the Lua code to store data in slots that are numbered 1 to 1000. Each slot may contain a numeric, string or Boolean value. Strings must not containformatting characters (e.g. quotes).</li><br />
<li>First argument is the slot ID</li><br />
<li>Second argument is the data to be stored. Delete slot by assigning nil to it.</li><br />
<li>Return value is true when storing was successful (i.e. target slot found), else false.</li><br />
<li>Each slot is written to using the EEPSaveData() function and read from using the EEPLoadData() function. The current value of each slot will also be saved with the user’s Lua program when the layout is saved. This will maintain sync between layout condition and data. The section of the script containing this data is not visible in EEP’s Lua editor.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPLoadData()</th><br />
<th style="padding: 10px;">EEPLoadData(Slot)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
hResult, hData = EEPLoadData(1)<br />
if hResult then <br />
print("Slot 1 contains: "..hData)<br />
else<br />
print("Slot 1 is empty")<br />
end<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 11.0</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Loads contents from data slot. Use this function to restore data when you re-load your script.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>Provides a means for the Lua code to read data from slots that are numbered 1 to 1000.</li><br />
<li>Each slot may contain a numeric, string or Boolean value. Strings must not contain formatting characters (e.g. quotes).</li><br />
<li>Argument is the slot ID.</li><br />
<li>First return value is true, if the slot contains data, else false.</li><br />
<li>Second return value is the data contained in this slot.</li><br />
<li>Slot data is transferred from the script to memory when a layout is loaded.</li><br />
</ul><br />
</td><br />
</tr><br />
</table></div>
Marc Horstmann
http://handbuch.eepshopping.de/index.php?title=Switch_Point_Functions
Switch Point Functions
2018-09-07T12:47:02Z
<p>Marc Horstmann: Die Seite wurde neu angelegt: „ <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"> <tr> <th colspan="2">EEPSetSw…“</p>
<hr />
<div> <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPSetSwitch()</th><br />
<th style="padding: 10px;">EEPSetSwitch(ID,Direction,Callback)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
-- set switch point 0067 to 1 (main line)<br />
EEPSetSwitch(67, 1)<br />
<br />
-- set switch point 0089 to 1 and call <br />
EEPOnSwitch_89()<br />
EEPSetSwitch(89, 1, 1)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two or three</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 10.2 plug-in 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Switches a switch-point.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is a numeric value representing the switch point’s ID.</li><br />
<li>Second argument is the switch point’s aspect.</li><br />
<li>If a 1 is entered as a third (optional) argument, the EEPOnSwitch_x() function for this switch is called when the direction of the switch has changed.</li><br />
<li><b>Use with care!</b> The switch must be registerd and the corresponding function must be declared. (see next page). Careless use of this function may result in infinite loops.</li><br />
<li>The function returns a 1 if the switch and the demanded direction exist. It returns a 0 if either one of the two could not be found.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPGetSwitch()</th><br />
<th style="padding: 10px;">EEPGetSwitch(ID)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
currentDirection = EEPGetSwitch(1)<br />
if currentDirection == 0 then<br />
print("Switch point 1 doesn’t exist")<br />
elseif currentDirection == 1 then<br />
print("Switch point 1 set to main line")<br />
elseif currentDirection == 2 then<br />
print("Switch point 1 set to branch line")<br />
end<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 10.2 plug-in 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Provides the current state of a switch point.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>Argument is the switch point’s ID.</li><br />
<li>Return value is a numeric representation of the switch’s current state. The value reflects the state’s position in the effects list of the switch point’s properties.</li><br />
<li>The return value is 0 if the switch doesn’t exist.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPRegisterSwitch()</th><br />
<th style="padding: 10px;">EEPRegisterSwitch(ID)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPRegisterSwitch(1)<br />
function EEPOnSwitch_1(Direction)<br />
print("switch point 1 changed to ",<br />
Direction)<br />
end<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 10.2 plug-in 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Registers a switch for the callback function EEPOnSwitch_x(). The requirement of a registration prevents switches from triggering a callback when no appropriate function was declared.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>The registration is mandatory for those switches which you want to trigger the EEPOnSwitch_x() function whenever the direction changes.</li><br />
<li>Argument is the switch’s ID.</li><br />
<li>Return value is 1, if the switch exists or 0 if it doesn’t exist.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPOnSwitch_x()</th><br />
<th style="padding: 10px;">EEPOnSwitch_x(Direction)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPRegisterSwitch(1)<br />
function EEPOnSwitch_1(Direction)<br />
print("switch point 1 changed to ", Direction)<br />
end<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">none</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 10.2 plug-in 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Every aspect change induced by a contact or by manual operation (directly or in a link chain) triggers this callback function if the switch has been registerd for callbacks. <b>However</b>: Changing this or a linked switch’s state by Lua function will not trigger the callback, unless the third argument in that function was a 1.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>The name of the function must not end in _x but with the switch’s ID. For switch 0034 the correct name of the function would be EEPOnSwitchl_34().</li><br />
<li><b>Please note</b>: The leading zeroes must be omitted in the function’s name!</li><br />
<li>The function is called with the new switch direction as an argument. The number matches the position in the switch’s direction list as found in the switch’s properties. Use a variable of your choosing to store this value.</li><br />
<li>EEP requires no return value when calling this function.</li><br />
</ul><br />
</td><br />
</tr><br />
</table></div>
Marc Horstmann
http://handbuch.eepshopping.de/index.php?title=Signal_Functions
Signal Functions
2018-09-07T12:16:53Z
<p>Marc Horstmann: Die Seite wurde neu angelegt: „ <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"> <tr> <th colspan="2">EEPSetSi…“</p>
<hr />
<div> <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPSetSignal()</th><br />
<th style="padding: 10px;">EEPSetSignal(ID,Aspect,Callback)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
-- switch signal 0023 to 1 (aspect depends on signal)<br />
EEPSetSignal(23, 1)<br />
<br />
-- switch signal 0045 to 1 and call <br />
EEPOnSignal_45()<br />
EEPSetSignal(45, 1, 1)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two or three</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 10.2 plug-in 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Switches a signal</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is a numeric value representing the signal’s ID.</li><br />
<li>Second argument is the signal’s aspect.</li><br />
<li>If a 1 is entered as a third (optional) argument, the EEPOnSignal_x() function for this signal is called when the signal’s aspect has changed.</li><br />
<li><b>Use with care!</b> The signal must be registerd and the corresponding function must be declared. (see next page). Careless use of this function may result in infinite loops.</li><br />
<li>The function returns a 1 if the signal and the demanded aspect exist. It returns a 0 if either one of the two could not be found.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPGetSignal()</th><br />
<th style="padding: 10px;">EEPGetSignal(ID)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
currentAspect = EEPGetSignal(1)<br />
if currentAspect == 0 then<br />
print("Signal 1 doesn’t exist")<br />
elseif currentAspect == 1 then<br />
print("Signal 1 set to Danger")<br />
elseif currentAspect == 2 then<br />
print("Signal 1 set to Clear")<br />
end<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 10.2 plug-in 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Provides the current state of a signal.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>Argument is the signal’s ID.</li><br />
<li>Return value is a numeric representation of the signal’s current aspect. The value reflects the aspect’s position in the effects list of the signal’s properties.</li><br />
<li>The return value is 0 if the signal doesn’t exist.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPRegisterSignal()</th><br />
<th style="padding: 10px;">EEPRegisterSignal(ID)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPRegisterSignal(1)<br />
function EEPOnSignal_1(newAspect)<br />
print("Signal 1 switched to ", newAspect)<br />
end<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 10.2 plug-in 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Registers a signal for the callback function EEPOnSignal_x(). The requirement of a registration prevents signals from triggering a callback when no appropriate function was declared.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>The registration is mandatory for those signals which you want to trigger the EEPOnSignal_x() function whenever the aspect changes.</li><br />
<li>Argument is the signal’s ID.</li><br />
<li>Return value is 1, if the signal exists or 0 if it doesn’t exist.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPOnSignal_x()</th><br />
<th style="padding: 10px;">EEPOnSignal_x(Aspect)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPRegisterSignal(1)<br />
function EEPOnSignal_1(newAspect)<br />
print("Signal 1 switched to ", newAspect)<br />
end<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">none</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 10.2 plug-in 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;"> Every aspect change induced by a contact or by manual operation (directly or in a link chain) triggers this callback function if the signal has been registerd for callbacks.<b>However</b>: Changing this or a linked signal’s state by Lua function will not trigger thecallback, unless the third argument in that function was a 1.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>The name of the function must not end in _x but with the signal’s ID. For signal 0012 the correct name of the function would be EEPOnSignal_12().</li><br />
<li><b>Please note</b>: The leading zeroes must be omitted in the function’s name!</li><br />
<li>The function is called with the new signal aspect as an argument. The number matches the position in the signal’s aspect list as found in the signal’s properties. Use a variable of your choosing to store this value.</li><br />
<li>EEP requires no return value when calling this function.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPGetSignalTrainsCount()</th><br />
<th style="padding: 10px;">EEPGetSignalTrainsCount(ID)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPGetSignalTrainsCount(3)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 13.2 plug-in 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Returns the number of consists waiting at the specified signal.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>Argument is the signal ID.</li><br />
<li>Return value ist he number of trains (cars, trams etc.) held by the signal.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPGetSignalTrainName()</th><br />
<th style="padding: 10px;">EEPGetSignalTrainName(ID,Positionsnr.)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPGetSignalTrainName(3 , 1)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">two</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 13.2 plug-in 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Returns the name oft he specified consist waiting at the specified signal.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>First argument is the signal ID.</li><br />
<li>Second argument ist the position of the train (car, tram ...) in the queue.</li><br />
<li>Return value ist the name of the specified consist.</li><br />
</ul><br />
</td><br />
</tr><br />
</table></div>
Marc Horstmann
http://handbuch.eepshopping.de/index.php?title=System_Function
System Function
2018-09-07T11:43:22Z
<p>Marc Horstmann: Die Seite wurde neu angelegt: „ <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"> <tr> <th colspan="2">clearlog(…“</p>
<hr />
<div> <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">clearlog()</th><br />
<th style="padding: 10px;">clearlog()</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
clearlog()<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">none</td><br />
</tr><br />
<tr><br />
<td scope="row">return: </td><br />
<td style="padding: 10px;">none</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 10.2 plug-in 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Clears the Lua event window.</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">print()</th><br />
<th style="padding: 10px;">print( "Text1", "Text2", ..., TextN )</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
print("The time now is: ",EEPTimeH,":",EEPTimeM)<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">multiple</td><br />
</tr><br />
<tr><br />
<td scope="row">return: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 10.2 plug-in 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Writes arguments to Lua event window (activate window in EEP properties)</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>Number types are converted to strings.</li><br />
<li>Accepts multiple arguments. Use comma as separator. Line feed with \n.</li><br />
<li>Returns the entire print text as one string.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPMain()</th><br />
<th style="padding: 10px;">EEPMain()</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
function EEPMain()<br />
return 1<br />
end<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">none</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 10.2 plug-in 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">This function is called by EEP 5 times per second (i.e. every 200 milliseconds); useful for all actions that require constant repeats.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>Declaration of this function is mandatory in every script.</li><br />
<li>The function is called by EEP without any parameters.</li><br />
<li>The function must return any number other than 0 to be called again.</li><br />
<li>Returning a 0 turns off the repeated calling of this function. Any other functions in yourscript remain active.</li><br />
<li>If this function returns something other than a number, EEP will cease to use the script.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPPause()</th><br />
<th style="padding: 10px;">EEPPause( Status )</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
Pause = EEPPause( 1 )<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 14 plug-in 1</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Activates and deactivates the break-satus of EEP.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>Status = 0 EEP resumes the simulation.</li><br />
<li>Status = 1 the simulation gets stopped.</li><br />
<li>Status = 2 the simulation and the LUA-scrip execution are stopped. To resume these, user will have to press the P-key.</li><br />
<li>Return value is 0, if the simulation resumes or 1, if it was stopped.</li><br />
</ul><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPSetTime()</th><br />
<th style="padding: 10px;">EEPSetTime(Hour,Minute,Second)</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">function</td><br />
<td rowspan="6" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
EEPSetTime( 14, 35, 2 )<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">caller: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">defined in: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">parameters: </td><br />
<td style="padding: 10px;">three</td><br />
</tr><br />
<tr><br />
<td scope="row">returns: </td><br />
<td style="padding: 10px;">one</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 14.2 Plug-In 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Changes the EEP-time.</td><br />
</tr><br />
<tr><br />
<td scope="row">notes: </td><br />
<td colspan="2"><br />
<ul><br />
<li>Argument 1 sets the hours.</li><br />
<li>Argument 2 sets the minutes.</li><br />
<li>Argument 3 sets the seconds.</li><br />
<li>All three arguments are mandatory.</li><br />
<li>The return value is true on success, otherwise false.</li><br />
</ul><br />
</td><br />
</tr><br />
</table></div>
Marc Horstmann
http://handbuch.eepshopping.de/index.php?title=System_Variables
System Variables
2018-09-07T10:37:39Z
<p>Marc Horstmann: </p>
<hr />
<div> <table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPVer</th><br />
<th style="padding: 10px;">EEPVer</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">variable</td><br />
<td rowspan="4" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
if EEPVer < 11 then<br />
print( "Train control via Lua not possible!" )<br />
end<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">used in: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">source: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 10.2 Plug-In 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Detecting the version number of EEP.</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPTime</th><br />
<th style="padding: 10px;">EEPTime</th><br />
</tr><br />
<tr><br />
<td scope="row">type: </td><br />
<td style="padding: 10px;">variable</td><br />
<td rowspan="4" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
if EEPTime == alteZeit + 50 then<br />
print( "Exactly 50 seconds have passed" )<br />
alteZeit = EEPTime</div><br />
elseif EEPTime > alte Zeit + 50 then<br />
print( "More than 50 seconds have passed" )<br />
alteZeit = EEPTime</div><br />
else<br />
print( "50 seconds didn't expired yet" )<br />
end<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">used in: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">source: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 10.2 Plug-In 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">EEPTime provides a variable that represents the current time within the EEP layout. The value equals the seconds passed since midnight (EEP time).</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPTimeH</th><br />
<th style="padding: 10px;">EEPTimeH</th><br />
</tr><br />
<tr><br />
<td scope="row">Type: </td><br />
<td style="padding: 10px;">variable</td><br />
<td rowspan="4" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
print("It is now: "..EEPTimeH..":"..EEPTimeM.." o'clock")<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">used in: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">source: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 10.2 Plug-In 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Returns the hour component of EEPTime, expressed as a value between 0 and 23.</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPTimeM</th><br />
<th style="padding: 10px;">EEPTimeM</th><br />
</tr><br />
<tr><br />
<td scope="row">Type: </td><br />
<td style="padding: 10px;">variable</td><br />
<td rowspan="4" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
print("It is now: "..EEPTimeH..":"..EEPTimeM.." o'clock")<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">used in: </td><br />
<td style="padding: 10px;">script</td><br />
</tr><br />
<tr><br />
<td scope="row">source: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 10.2 Plug-In 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Returns the minute component of EEPTime, expressed as a value between 0 and 59.</td><br />
</tr><br />
</table><br />
<br />
<br />
<table width="90%" align="center" border="1" style="border: 1px solid black; border-collapse: collapse;"><br />
<tr><br />
<th colspan="2">EEPTimeS</th><br />
<th style="padding: 10px;">EEPTimeS</th><br />
</tr><br />
<tr><br />
<td scope="row">Type: </td><br />
<td style="padding: 10px;">variable</td><br />
<td rowspan="4" style="font: 15px Courier New, sans-serif; padding: 10px;"><br />
<pre><br />
if EEPTimeS == 15 then<br />
EEPSetSignal( 1 , 1 ) -- switch traffic light 1 to green<br />
elseif EEPTimeS == 45 then<br />
EEPSetSignal( 1 , 2 ) -- switch traffic light 1 to red<br />
end<br />
</pre><br />
</td><br />
</tr><br />
<tr><br />
<td scope="row">used in: </td><br />
<td style="padding: 10px;">Script</td><br />
</tr><br />
<tr><br />
<td scope="row">source: </td><br />
<td style="padding: 10px;">EEP</td><br />
</tr><br />
<tr><br />
<td scope="row">requires: </td><br />
<td style="padding: 10px;">EEP 10.2 Plug-In 2</td><br />
</tr><br />
<tr><br />
<td scope="row">purpose: </td><br />
<td colspan="2" style="padding: 10px;">Returns the second component of EEPTime, expressed as a value between 0 and 59.</td><br />
</tr><br />
</table></div>
Marc Horstmann
http://handbuch.eepshopping.de/index.php?title=LUA_Handbuch_zu_EEP
LUA Handbuch zu EEP
2018-09-07T09:16:11Z
<p>Marc Horstmann: </p>
<hr />
<div> <br />
<br />
[[System Variables]]<br> <br />
[[System Function]]<br> <br />
[[Signal Functions]]<br> <br />
[[Switch Point Functions]]<br> <br />
[[Storage Functions]]<br> <br />
[[Train Functions]]<br> <br />
[[Rolling Stock Functions]]<br> <br />
[[Structure Functions]]<br> <br />
[[Cargo Functions]]<br><br />
[[Track Functions]]<br> <br />
[[Camera Functions]]<br> <br />
[[Layout Functions]]<br> <br />
[[Virtual Train Depot Functions]]<br> <br />
[[Sound Functions]]<br><br />
[[Tip Text Functions]]<br> <br />
[[TextureText Functions]]<br><br />
[[Info Text Functions]]<br><br />
[[Tag Text Functions]]<br></div>
Marc Horstmann
http://handbuch.eepshopping.de/index.php?title=Willkommen_bei_EEP_15
Willkommen bei EEP 15
2018-09-06T13:19:19Z
<p>Nicci53: Schützte „Willkommen bei EEP 15“: Wiederkehrender Vandalismus ([Bearbeiten=Nur Administratoren erlauben] (unbeschränkt) [Verschieben=Nur Administratoren erlauben] (unbeschränkt))</p>
<hr />
<div>== Inhaltsverzeichnis ==<br />
<br />
<br />
<font size="3">[[Willkommen bei EEP 15]]</font><br> <br />
<font size="3">[[Was ist neu in EEP15 gegenüber EEP14]]</font><br> <br />
<br />
<font size="3">[[Lizenzvereinbarung]]</font><br> <br />
<br />
<font size="3">1. Installation, Start und Registrierung von EEP 14</font><br> <br />
:1.1 [[Systemvoraussetzungen]]<br><br />
:1.2 Installation<br><br />
::1.2.1 [[Erstmalige Installation]]<br><br />
::1.2.2 [[Installation bei bereits vorhandener EEP-Version]]<br><br />
:1.3 [[Vorteil der Registrierung]]<br><br />
:1.4 [[Deinstallation]]<br><br />
:1.5 [[Installation neuer Modelle]]<br><br />
<br />
<font size="3">[[2. Bildschirmaufbau]]</font><br><br />
:2.1 [[Das Plan-Fenster der 2D-Ansicht und das 3D-Fenster]]<br />
:2.2 [[Die Funktionsleisten]]<br />
::2.2.1 [[Das Menü]]<br />
::2.2.2 [[Die Werkzeugleiste]]<br />
::2.2.3 [[Die Kontrollleisten]]<br />
:2.3. [[Der neue Gizmo (Manipulator)]]<br />
:2.4. [[Navigieren mit der Maus]]<br />
<br />
<font size="3">3. Kameraführung</font><br><br />
:3.1 [[Bedienung und Steuerung]]<br />
::3.1.1 [[Kamera positionieren und ausrichten]] <br />
:::3.1.1.1 [[Kamera positionieren und ausrichten in der 2D-Ansicht]]<br />
:::3.1.1.2 [[Kamera positionieren und ausrichten im Radarfenster 3D-Ansicht]]<br />
::3.1.2 [[Kamerapositionen speichern]]<br />
::3.1.3 [[Die mobile Kamera]]<br />
:3.2 [[Kameraführung im 3D-Fenster]]<br />
::3.2.1 [[Die frei bewegliche Kamera]]<br />
::3.2.2 [[Die gekoppelte Kamera]]<br />
::3.2.3 [[Der Verfolgungsmodus]]<br />
::3.2.4 [[Die Timer-Kamera]]<br />
::3.2.5 [[Kamerawechsel durch Kontaktpunkte]]<br />
<br />
<font size="3">4. Anlagen bauen und gestalten</font><br><br />
:4.1 [[EEP entdecken und kennenlernen]]<br />
:4.2 [[Eine neue Anlage einrichten]]<br />
:4.3 [[Modellierung der Landschaft]]<br />
::4.3.1 [[Relief- und Oberflächengestaltung mit dem 2D-Editor]]<br />
::4.3.2 [[Relief- und Oberflächengestaltung mit dem 3D-Editor]]<br />
:4.4 [[Umwelt- und Wetterbedingungen definieren]]<br />
:4.5 [[Landschaftselemente und Immobilien einfügen]]<br />
::4.5.1 [[Schatten für Landschaftselemente und Immobilien]]<br />
::4.5.2 [[Zufällige Variation beim Aufstellen von LS-Elementen und Immobilien]]<br />
:4.6 [[Verkehrsnetze aufbauen]]<br />
::4.6.1 [[Gleise verlegen]]<br />
::4.6.2 [[Gleisobjekte einsetzen]]<br />
::4.6.3 [[Automatisierte Kreuzungen zum Straßenverkehr]]<br />
::4.6.4 [[Erweitertes Kopieren von Fahrwegen]]<br />
::4.6.5 [[Gleise und Landschaft]]<br />
::4.6.6 [[Landwirtschaft]]<br />
::4.6.7 [[Animierte Wassereffekte und schwimmende Objekte]]<br />
::4.6.8 [[Andere Verkehrswege]]<br />
:4.7 [[Omegas (animierte Figuren)]]<br />
:4.8 [[Hintergründe]]<br />
:4.9 [[Neue Himmelseffekte]]<br />
<br />
<font size="3">[[5. Anlagen in Betrieb nehmen]]</font><br><br />
:5.1 [[Rollmaterialien einsetzen und aufgleisen]]<br />
:5.2 [[Rollmaterialien steuern]]<br />
::5.2.1 [[Manuelle Steuerung]]<br />
::5.2.2 [[Steuerung mit einem Gamepad]]<br />
::5.2.3 [[Manuelle Steuerung-]]<br />
::5.2.4 [[Automatische Steuerung]]<br />
::5.2.5 [[Benutzerdefinerte Kamera bei Rollmaterialien]]<br />
::5.2.6 [[Der Eigenschaften-Explorer]]<br />
:5.3 [[Züge zusammenstellen]]<br />
:5.4 [[Animierte Führerstände]]<br />
:5.5 [[Fahrzeugphysik für Straßenfahrzeuge]]<br />
::5.5.1 [[Scheinkräfte in Modellen]]<br />
::5.5.2 [[Fahrzeuge mit Stopp- und Blinklichtern]]<br />
::5.5.3 [[Fahrzeuge mit Löschwasser]]<br />
::5.5.4 [[Dampf, Rauch und akustische Signale]]<br />
::5.5.5 [[Beladungsfunktion für Fahrzeuge mit beweglichen Achsen]]<br />
::5.5.6 [[Weitere Animationsmodelle]]<br />
:5.6 [[Einblenden von Texten]]<br />
::5.6.1 [[Textanzeige bei mobilen Kameras]]<br />
::5.6.2 [[Textanzeige über sogenannte Informationsmodelle]]<br />
::5.6.3 [[Tipp-Texte für Objekte und Kontaktpunkte]]<br />
<br />
<font size="3">[[6. Signalsteuerung]]</font><br><br />
:6.1 [[Signale aufstellen]]<br />
:6.2 Kontaktpunkte setzen<br><br />
::6.2.1 [[Kontaktpunkte für Signale]]<br />
::6.2.2 [[Kontaktpunkte für Weichen]]<br />
::6.2.3 [[Kontaktpunkte für Sound]]<br />
::6.2.4 [[Kontaktpunkte für Fahrzeuge]]<br />
::6.2.5 [[Kontaktpunkte in 3D kopieren]]<br />
::6.2.6 [[Virtuelles Zug-Depot]]<br />
:6.3 [[Fahrstrecken (Routen) und Fahrpläne]]<br />
::6.3.1 [[Fahrstrecken (Routen) definieren]]<br />
::6.3.2 [[Fahrpläne erstellen]]<br />
:6.4 [[Fahrstraßen]]<br />
:6.5 [[LUA]]<br />
::6.5.1 [[LUA-Wizard]]<br />
<br />
<font size="3">[[7. Der Stellpult-Editor]]</font><br><br />
:7.1 [[Das Hauptfenster]]<br />
:7.2 [[Gleisbild bauen]]<br />
:7.3 [[Gleisbild zuordnen]]<br />
<br />
<font size="3">8. Einstellungen und Support</font><br><br />
:8.1 [[Programmeinstellungen]]<br />
:8.2 [[Hotkey-Tabelle]] <br />
<br />
<font size="3">9. Plug-Ins zu EEP 13</font><br><br />
:9.1 [[Plug-In 1]]<br />
:9.2 [[Plug-In 2]]<br />
<br />
<font size="3">[[Technischer Kundenservice]]</font><br><br />
<br />
<font size="3">[[Impressum]]</font><br><br />
<br />
<font size="3">Allgemeiner Hinweis</font><br><br />
Nachdem Sie EEP 13 gestartet haben, finden Sie auf der Startseite und unter dem Menüpunkt <b>„Hilfe“</b> ein umfangreiches<br />
Video Tutorial, welches Ihnen den Einstieg in EEP erleichtert.<br><br />
<br />
<br />
<!--<br />
== Interner Bereich ==<br />
<br />
#[[Bilder]]<br />
#[[Bilder - Kapitel 3]]<br />
<br />
<br />
'''MediaWiki wurde erfolgreich installiert.'''<br />
<br />
Hilfe zur Benutzung und Konfiguration der Wiki-Software findest du im [//meta.wikimedia.org/wiki/Help:Contents Benutzerhandbuch].<br />
<br />
<br />
* [//www.mediawiki.org/wiki/Manual:Configuration_settings Liste der Konfigurationsvariablen]<br />
* [//www.mediawiki.org/wiki/Manual:FAQ MediaWiki-FAQ]<br />
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce Mailingliste neuer MediaWiki-Versionen]<br />
* [//www.mediawiki.org/wiki/Localisation#Translation_resources Lokalisiere MediaWiki für deine Sprache]<br />
--></div>
Nicci53