Joined: 24 Jun 2007, 07:34 Location: 50┬░ 56' N, 11┬░ 35' O
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.
Now, change script.txt to script.lua and change SM3 to lua and do away with the engine based tdf parser.
Yep, after you wrote a in-engine lua generater and parser that is as convenient to use as the tdf one.
There's a tdf generator? Then why was archivecache.txt written out 'by hand' as it were (as archivecache.lua is now)?
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.
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?
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.
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.
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 FLOZi , but "Replace" dont work in OTA content. Have dong this modinfo.lua->
Code:
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', } }
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 ...
maybe Replace wasnt testet during developing of modinfo.lua ? 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 ? 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 ......
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.
Users browsing this forum: No registered users and 0 guests
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