Page 19 of 22

Re: trAInsported: Alpha testers needed

Posted: Tue Apr 16, 2013 8:35 pm
by asfreng
Yes, i encoded it in UTF-8 wo BOM and it worked, for testing u can replace English.lua for your file.

One thing, in the main screen the "Settings" button seems to be static, i cant change it xD
"Cancel" button while exiting match seems to be static too, can u check it please?

There is mistakes in the "English.lua" file too:

LNG.menu_choose_dimension = [[Width and Height:]]
LNG.menu_choose_dimension_tooltip1 = [[Select width]]
LNG.menu_choose_dimension_tooltip2 = [[Select height]]

is dimensions, not dimension:

LNG.menu_choose_dimensions = [[Width and Height:]]
LNG.menu_choose_dimensions_tooltip1 = [[Select width]]
LNG.menu_choose_dimensions_tooltip2 = [[Select height]]

and in this line:

LNG_menu_choose_region = [[Region:]]

is

LNG.menu_choose_region = [[Region:]]

Re: trAInsported: Alpha testers needed

Posted: Tue Apr 16, 2013 9:05 pm
by Germanunkol
Fixed all the things you mentioned. Thanks a lot for the detailed research! I fixed most of the things in the German version, but forgot to go back and fix them in the english one...
I'm very sorry, I became a little tired and sloppy towards the end... translating can be quite boring work.

Re: trAInsported: Alpha testers needed

Posted: Tue Apr 16, 2013 11:10 pm
by asfreng
Where can i send the file?, im sending the Spanish.lua now, ill try to traslante the tutorials in my free time =P.

Re: trAInsported: Alpha testers needed

Posted: Tue Apr 16, 2013 11:29 pm
by Germanunkol
PM'ed you my Email. Thanks for the fast work!!

Re: trAInsported: Alpha testers needed

Posted: Wed Apr 17, 2013 6:01 am
by AnToHu0
Russian translate is ready(excluding tutorials by now). Can you send an e-mail address to me too? Also check the Issues on github, I leave some comments in transtation topic and start one.

Re: trAInsported: Alpha testers needed

Posted: Wed Apr 17, 2013 7:48 am
by AnToHu0
I have an idea again :)
What if each author and AI on server would have a little description? For example some user can have a description like "%username% TrAIns corporation was founded at %time%. Director of %corpName% always says: "Slogan of our company is "We do our best!"..." etc. And AI description may contains something like "The %AIname% is an advanced development of our company. It realizes newest ideas of pathfindig and train management. You have never experienced such comfort in transportation yet!" This description will appears in AI and author pages in main website.
It is just decoration, but in my opinion it makes game more atmospheric.

Re: trAInsported: Alpha testers needed

Posted: Thu Apr 18, 2013 4:23 pm
by Germanunkol
That's a great Idea!
I am still thinking of ways about how to make the server/website nicer, and that idea would fit very well with it.

I'll see where I get, I'm pretty busy in the next few days...

Re: trAInsported: Alpha testers needed

Posted: Thu May 02, 2013 10:16 am
by Woboroz
Hi,
i found this thread searching for an issue my AI didn't work. The problem is the setmetatable function (once more :)). As i understand, the security problem is about manipulating existing metatables. In most samples about lua and metatables i found it used to enhance new tables. So it may be an solution for most cases to allow the setmetatable function for tables without an existing one.

Code: Select all

sb.setmetatable = function( argElement, argMetatable )
	local varOldMetatable = getmetatable( argElement )
	if varOldMetatable ~= nil then
		error( 'manipulating metatables is not allowed in this sandbox' )
	end
	setmetatable( argElement, argMetatable )
end
The metatable returned by getmetatable may be readonly.

Code: Select all

sb.getmetatable = function( argElement )
	local varMetatable = sysgetmetatable( argElement )
	if varMetatable == nil then return nil end
	return syssetmetatable( {}, {
		__index = varMetatable,
		__newindex = function( argMT, argKey, argValue ) error( 'modify metatable is denied' ) end,
		__metatable = false
	} );
end
But this didn't fix all the problems. Existing meta methods may be overwritten. I don't need the get method so maybe other solution will work without it too :D. The ability to use setmetatable for own tables (to use it as classes) would be a big enhancement at all.

bye Majo

Re: trAInsported: Alpha testers needed

Posted: Tue May 07, 2013 7:32 pm
by Germanunkol
Hey, just letting you know that I read the post and I'm not ignoring it. I'm just quite busy at the moment and I don't know much about metatables in sandboxes yet, so I need more time to look into the subject than I have right now...

I will probably discuss this topic with some people on the Lua irc channels some day... There's a few of them who have quite a lot of experience with sandboxes.

Re: trAInsported: Alpha testers needed

Posted: Thu Sep 05, 2013 3:41 pm
by Punkroku
Is this past alpha yet!! What I played yesterday was amazing. I think this should win an award. Its a great educational tool teaching the basics of lua.

i like you way you are training people with you train sim. I want to check out the online play sometime with my own ai script.

good job,
I especially like all the work you put into the tutorials. One thing I didn't like was how my tutorials got erased when I tried them again...

I played a game called laby for linux and its about an ant and you have to write commands to move it around. This is way better. It should be part of a class or on school computers like Oregon Trail was back we I was a kid.