Important announcement: modinfo.tdf support to be dropped
Moderator: Moderators
-
- Spring Developer
- Posts: 1254
- Joined: 24 Jun 2007, 08:34
Important announcement: modinfo.tdf support to be dropped
In order to improve, simplify and speed up the handling of archives, we decided to drop support for modinfo.tdf file.
modinfo.lua has more functionality, and has been in place for a lot of time, so if you still using the tdf, please convert it to lua.
modinfo.lua has more functionality, and has been in place for a lot of time, so if you still using the tdf, please convert it to lua.
Re: Important announcement: modinfo.tdf support to be dropped
I take it that this is effective as of the official release?
Re: Important announcement: modinfo.tdf support to be dropped
the coming version, yes.
Re: Important announcement: modinfo.tdf support to be dropped
After all the work I went to making it backwards compatible (that trepan rewrote anyway )
Good move.
Now, change script.txt to script.lua and change SM3 to lua and do away with the engine based tdf parser.
Good move.
Now, change script.txt to script.lua and change SM3 to lua and do away with the engine based tdf parser.
-
- Spring Developer
- Posts: 1254
- Joined: 24 Jun 2007, 08:34
Re: Important announcement: modinfo.tdf support to be dropped
Yep, after you wrote a in-engine lua generater and parser that is as convenient to use as the tdf one.FLOZi wrote:Now, change script.txt to script.lua and change SM3 to lua and do away with the engine based tdf parser.
Re: Important announcement: modinfo.tdf support to be dropped
So i just replace that one file?anything else?
-
- Spring Developer
- Posts: 1254
- Joined: 24 Jun 2007, 08:34
Re: Important announcement: modinfo.tdf support to be dropped
No, just that one.Gota wrote:So i just replace that one file?anything else?
Re: Important announcement: modinfo.tdf support to be dropped
But will it work until the release of new spring?
Re: Important announcement: modinfo.tdf support to be dropped
There's a tdf generator? Then why was archivecache.txt written out 'by hand' as it were (as archivecache.lua is now)?Auswaschbar wrote:Yep, after you wrote a in-engine lua generater and parser that is as convenient to use as the tdf one.FLOZi wrote:Now, change script.txt to script.lua and change SM3 to lua and do away with the engine based tdf parser.
Honest question, not trying to be offensive (Nor was my offhand comment about getting rid of tdfparser in the first place, didn't mean to come across as making a demand)
edit: oh yeah, there it is, TdfSection::construct_subsection et al. I wonder if it was added after archivecache moved to lua?
Anyway, this (modinfo.tdf removal) doesn't appear to be in the main git repro yet, got a branch I can look at?
edit: nevermind, in now. Nice.
Re: Important announcement: modinfo.tdf support to be dropped
I thought Spring already had a TFD to LUA translator. If so, what's wrong with passing modinfo.txt through it when there's no modinfo.lua?
Re: Important announcement: modinfo.tdf support to be dropped
modinfo is read before the parse_tdf.lua is read; the current engine hacks around this by loading the parse_tdf.lua into a string in the engine and then running the whole thing through lua. It adds a lot of ugly code.zwzsg wrote:I thought Spring already had a TFD to LUA translator. If so, what's wrong with passing modinfo.txt through it when there's no modinfo.lua?
Take a look at the old code and you'll see what I mean, and why the devs would want to get rid of it.
Re: Important announcement: modinfo.tdf support to be dropped
Hi,
who can i found a discription of modinfo.lua ?
Have only one found over "partialy" modinfo.tdf
(http://springrts.com/wiki/Mod_specification)
who can i found a discription of modinfo.lua ?
Have only one found over "partialy" modinfo.tdf
(http://springrts.com/wiki/Mod_specification)
Re: Important announcement: modinfo.tdf support to be dropped
Here's a short exemple I just made:
The name shown by lobby will be "<name> <version>"
<shortName> is used to keep tracks of some settings, like active widget list, AI configs, ...
Code: Select all
return {
game = "Total Annihilation",
shortGame = "TA",
name = "Balanced Annihilation",
shortName = "BA",
version="V7.04-sav1",
mutator = "Save/Load",
description = "B.A., with saves",
url = "http://springrts.com/phpbb/memberlist.php?mode=viewprofile&u=145",
modtype = "1",
depend = { "BA704.sd7" },
}
<shortName> is used to keep tracks of some settings, like active widget list, AI configs, ...
Re: Important announcement: modinfo.tdf support to be dropped
Hi,
Thanks zwzsg :)
But need an example with Multiple dependics and one Replacement
set too ....
And btw who is it with NO dependics ?
Leave the field empty or erase the full "depend" line it is not in use ?
(need to convert the unusable mods in my mod dir from tdf to lua,and
the base OTA too ...)
Thanks zwzsg :)
But need an example with Multiple dependics and one Replacement
set too ....
And btw who is it with NO dependics ?
Leave the field empty or erase the full "depend" line it is not in use ?
(need to convert the unusable mods in my mod dir from tdf to lua,and
the base OTA too ...)
Re: Important announcement: modinfo.tdf support to be dropped
R-TEAM wrote:Hi,
Thanks zwzsg :)
But need an example with Multiple dependics and one Replacement
set too ....
Code: Select all
depend = {
"myfirstdependancy.sdz",
"myseconddependancy.sdz",
"myothercoolmod.sdz",
},
replace = {
"mymodthatiamreplacing.sdz,"
}
Just don't put the 'depend' in at all.And btw who is it with NO dependics ?
Leave the field empty or erase the full "depend" line it is not in use ?
(need to convert the unusable mods in my mod dir from tdf to lua,and
the base OTA too ...)
Re: Important announcement: modinfo.tdf support to be dropped
Hi,
thanks FLOZi , but "Replace" dont work in OTA content.
Have dong this modinfo.lua->
But the mod (and unitsync) cant find tacontent.sdz ...
Log ->
...
unitsync: adding archive: E:\Games\Spring\mods\arachnomania0[1].8fr_stable[FIXED].sd7
unitsync: adding archive: tacontent.sdz
Error opening tacontent.sdz
...
?
thanks FLOZi , but "Replace" dont work in OTA content.
Have dong this modinfo.lua->
Code: Select all
return {
name='TA Content version 2',
description='Mods can depend on this archive to get both spring and TA content',
modtype=0,
depend = {
'otacontent.sdz',
'springcontent.sdz',
},
replace = {
'tacontent.sdz',
}
}
Log ->
...
unitsync: adding archive: E:\Games\Spring\mods\arachnomania0[1].8fr_stable[FIXED].sd7
unitsync: adding archive: tacontent.sdz
Error opening tacontent.sdz
...
?
Re: Important announcement: modinfo.tdf support to be dropped
Not sure why that doesn't work.
Re: Important announcement: modinfo.tdf support to be dropped
Hi,
Or the syntax is wrong ...?
Have sucesfull convertet a couple of mods (AdvBA1.58beta/BA7.04/ REVELATION V60) and all works as before ...
Only was unsure over the [NTAI] tag ......
maybe Replace wasnt testet during developing of modinfo.lua ?FLOZi wrote:Not sure why that doesn't work.
Or the syntax is wrong ...?
Have sucesfull convertet a couple of mods (AdvBA1.58beta/BA7.04/ REVELATION V60) and all works as before ...
Only was unsure over the [NTAI] tag ......
Re: Important announcement: modinfo.tdf support to be dropped
But modinfo.tdf is read (in a long winded fashion) by a lua tdf parser, so the end result is the same lua table as modinfo.lua, which is what is read by the engine. Maybe my syntax is wrong, or maybe I'm missing something about the tdf->lua conversion.R-TEAM wrote:Hi,
maybe Replace wasnt testet during developing of modinfo.lua ?FLOZi wrote:Not sure why that doesn't work.
Or the syntax is wrong ...?
Have sucesfull convertet a couple of mods (AdvBA1.58beta/BA7.04/ REVELATION V60) and all works as before ...
Only was unsure over the [NTAI] tag ......
-
- Spring Developer
- Posts: 1254
- Joined: 24 Jun 2007, 08:34
Re: Important announcement: modinfo.tdf support to be dropped
I don't think its modinfo related, as the error would mention that.