Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
The German edition comes with a table of all available EEP-related Lua functions.
You can download the latest German edition here, if you wish -> EEP forum - Lua manual[www.eepforum.de]
Even though the manual is in German, the table will offer you plenty of insight, due to it's structured nature. Not ideal, I know. But as a quick remedy? Meanwhile I'm working on the translation.
regarding parameters:
EEP sees everything in the contact's Lua field as the function name. Brackets would therefore be misinterpreted as part of the name.
But any function call from within a contact always sends the name of the triggering train as a parameter. So all you need to do is get hold of it via that variable name in your function declaration.
One user programmed a clever single line which can catch whatever EEP is sending and translate it into a proper function call with multiple parameters and more. Visit our forum and ask for it and I'll point you in the right direction.
Could you kindly tell me what code I need to put at the start of my code for parameters to work?
Also I see some explanation about commas and point (fullstops) but I don't understand these comments - maybe it is the translation. Also there are comments that in later versions of EEP the train name is passed as standard to the user code but again the translations don't make sense what the user needs to do to maintain this.
Really the best solution is that EEP actually enables the real program to pass parameters. That would be the best solution. However, until that happens I really need to get the code working and would greatly appreciate your help.
Also, at the moment I am having problems with my internet connection. I know you sent me a link for the new EEP13 manual but I cannot view it. Is it available as a pdf to download?
Many thanks and best wishes for the new year
The first code line from Benny for parameter use was older and train names were lost when you used this early version. But Benny updated his code shortly after EEP 12 was released and it can now pass on the train names.
Another issue with the early version was that commas got converted to colons. Reason being that in the German language, a comma is used as a decimal separator. Benny quickly realised that commas are required as separators for multiple parameters and put his code right in that regard too.
He updated his posting recently so that the opening post now holds the current version of his code. This is the code line:
Make sure you run your script (containing this line of code) once before you enter any Lua functions into a contact's Lua field or else EEP will complain that this function doesn't exist in your script.
Hope that helps
Fritz
I can now code the control system that I would like to build. I'll let you know when complete (target = within 1 week).
One other question. Is there any information about how to build assets? I don't plan to build anything complicated but would like to build some specific switchs/buttons to work with my lua code if it isn't difficult to do. I know there are some in the shop but 1) not sure they are exactly what I want and 2) it would be fun to build some myself. If I do (and if they work) I'm happy to make them available.