ToME: the Tales of Maj'Eyal

Everything about ToME
It is currently Sun Dec 17, 2017 10:05 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Sat Jan 08, 2011 3:28 am 
Offline
Wyrmic

Joined: Sat Jan 26, 2008 1:12 am
Posts: 203
The T-Engine version 4 is remarkably versatile in its current form, but there is a feature that is currently missing that would prevent someone from recreating the ToME 2.3 game as a TE4 module. This greatly concern me as I also would require that very same feature in BOB. This feature cannot be replicated by module code, and would need to be implemented directly in the engine. However, it would be trivial to add support for that feature by changing only a single line of code from the engine.

Indeed, changing line 104 of Module.lua to:
Code:
local mod = {math = math}

would be all that is required to restore the possibility of module-maker to use that extremely crucial feature.


PS: Can anyone guess which feature I am talking about?


Top
 Profile  
 
PostPosted: Sat Jan 08, 2011 7:59 am 
Offline
Master of Eyal

Joined: Wed Jul 24, 2002 9:26 pm
Posts: 10144
Location: Angolwen
Hummm .... I give up .... what do you need the math functions inside init.lua for ?? :)

_________________
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)


Top
 Profile  
 
PostPosted: Sat Jan 08, 2011 12:59 pm 
Offline
Wyrmic

Joined: Sat Jan 26, 2008 1:12 am
Posts: 203
darkgod wrote:
Hummm .... I give up .... what do you need the math functions inside init.lua for ?? :)


Simple, in init.lua, you need to set a bunch of properties for the module, the name, the engine version, and the long_name... But what was the long_name of ToME 2.3? Was it "Tales of Middle-Earth" or was it "Troubles of Middle-Earth"?

In short, I want to have BOB gets a random long_name every time the engine boots up, and the only way to do that require a random function (or time) function, which is found in the math table (the rng table would work too, but that would have been too obvious).


Top
 Profile  
 
PostPosted: Sat Jan 08, 2011 2:07 pm 
Offline
Master of Eyal

Joined: Wed Jul 24, 2002 9:26 pm
Posts: 10144
Location: Angolwen
Ahahahah :)

That is such a silly, useful and pointless feature that i just have to add it ;)

_________________
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group