What's going on with mapinfo.lua?

What's going on with mapinfo.lua?

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

What's going on with mapinfo.lua?

Post by smoth »

Apparently things are changing, I am pretty much the only guy who works with this stuff and I am still unpacking but If you guys could let me know what is going on it would be awesome.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: What's going on with mapinfo.lua?

Post by Forboding Angel »

Additionally, a pastebin of current mapinfo (I know jk has been working with this) would be lovely :-)
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: What's going on with mapinfo.lua?

Post by smoth »

I don't really care about the process, I just want the details on what was broken, what is fixed, what changed and what I will need to update.

ESP if this is coming soon and DOUBLE ESPECIALLY IF it breaks anything.
SirMaverick
Posts: 834
Joined: 19 May 2009, 21:10

Re: What's going on with mapinfo.lua?

Post by SirMaverick »

smoth wrote:Apparently things are changing
active developers => changes
I am pretty much the only guy who works with this stuff
No.
smoth wrote:I don't really care about the process
The process doesn't really care about you.
, I just want the details on what was broken, what is fixed, what changed and what I will need to update.
Current mapinfo.lua works with master (0.82.3-1742-ge7c93ab).
So I don't see something that is generally broken, so no need for updates.
Without further information I assume fixes for counter cases or code refactoring.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: What's going on with mapinfo.lua?

Post by smoth »

"no" oh? Who else?

Process misses me but she is a bitch so *forget* her

Dunno Mav I was told there was some major refactor coming.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: What's going on with mapinfo.lua?

Post by jK »

k

Before there were 2 mapinfo.lua's one in the basedir (loaded by the ArchiveScanner) and a 2nd in maphelper/ (used by MapInfo). So the first contained archive related data and the other one startpos, lighting, ...
But having 2 files with the same name is extremely confusing and a source of new bugs.
So I decided to drop the maphelper one and to move everything to the basedir one. But for backward compatibility it still checks the maphelper one if the basedir one doesn't exists, so as long as your map didn't had a basedir one yet everything is fine. And because it seems Forb is the first one who wanted to play with map dependencies, no map should be broken. For ppl who want to make usage of it before 0.83 should just create the basedir one and a redirection lua in the maphelper (for an example how to do that, wait for my example map container).

So because I did a few changes to the sound system I wanted to make available via the mapinfo.lua. I already had the wish to write a clean implementation of mapinfo/mapoptions all mappers can use in the future. So you just have to put in your smf+smt, edit the default configs and fine is.
I will create a new thread for it when it's ready.
Post Reply

Return to “Engine”