Page 3 of 3

Re: Important announcement: modinfo.tdf support to be dropped

Posted: 31 Jan 2010, 21:47
by smoth
FLOZi wrote:
smoth wrote:

Code: Select all

local modinfo = {
		name						=	"Smoth's GUI work",
		shortName				= "S44",
		game						= "Spring 1944",
		shortGame				= "S44",
		mutator					= "Official",
		description			=	"lalala",
		url							=	"http://www.spring1944.com",
		modtype					=	"1",
		
		depend = {
		"s44literelease.sdd",
		}
}

return modinfo
SOOOOOOOOOOO HARD
WHAT IS THIS VOODOO!? :shock: :cry:
I don't know, how could this be copy-pasted into a file then the values changed...

MADNESS!

Re: Important announcement: modinfo.tdf support to be dropped

Posted: 01 Feb 2010, 07:56
by R-TEAM
Hi,

he,he - nice discuss but i agree with the Devs ...
Another problem - not realy tdf>Lua relatet but a direct impact of it ..

Have changed (with other fixed long ago that it run on pre 0.7x spring)
Anarchomania0.8fr modinfo.tdf to lua :

Code: Select all

return {
  name='Arachnomania',
  description='',
  shortname='ARACHNOfr',
  version='0.8 fr',
  mutator='',
  game='Arachnomania',
  shortGame='Arch',
  modtype=1,
  depend = {
    'tacontent.sdz',
    'tatextures.sdz',
  },
}
And repacked with 7Zip as sd7, runs NICE.

Then changed tacontent.sdz .tdf to .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 = {
	'springcontent.sdz',
	'otacontent.sdz',
  },
}
And repacked with IZArc.
This was before tacontent_v2 with the "Replace" tag that dont work flawless.I think no actual game need the alternate tacontent_v2 and tatexturev0.62, all old games uses tacontent and tatexture.So i delete the replace line in both and rename he as tacontent and tatexture.

Then i make the same with tatexture:

Code: Select all

return {
  name='TA Textures v0.62',
  description='TA textures used by spring - now partially includes reflective textures',
  shortname='',
  version='',
  mutator='',
  game='',
  shortGame='',
  modtype=0,
}
And repack with IZArc.

And at last with otacontent :

Code: Select all

return {
  name='OTA Content',
  description='TA content used by spring',
  modtype=0,
}
And here come the problem .....
If i repack the otacontent with IZArc (as all other zip archives before!)
then it dont run....
Come the error "default cursor not found" ....
IF i use the orginal dont changed otacontent (with modinfo.tdf) then
it runs.(so at first i have thinked an bug that is modinfo.lua related ..)
BUT - if i decrunch otacontent and then recrunch it with IZArc (who remember the mod self is crunched too and run flawles with orginal otaconten ..) and change nothing,with modinfo.tdf still,..
The same error apears !
So it is ......dont know .....??

Re: Important announcement: modinfo.tdf support to be dropped

Posted: 01 Feb 2010, 08:38
by R-TEAM
Hi,

o.k. - found the Error !
It is IZArc !<<

If i crunch the sdz files with 7z (as zips) too, all run flawles.
Maybe this is the reason of the error in "replace" too ..??
But a bit bad that spring dont say that is a problem with the archive ...

Re: Important announcement: modinfo.tdf support to be dropped

Posted: 01 Feb 2010, 09:56
by zwzsg
I wouldn't change tacontent, tatexture and otacontent myself if I were you. There's gonna be sync error if files are repacked under the same name.

Re: Important announcement: modinfo.tdf support to be dropped

Posted: 01 Feb 2010, 13:18
by Auswaschbar
R-TEAM wrote:Hi,

o.k. - found the Error !
It is IZArc !<<

If i crunch the sdz files with 7z (as zips) too, all run flawles.
Maybe this is the reason of the error in "replace" too ..??
But a bit bad that spring dont say that is a problem with the archive ...
You checked the infolog?

Re: Important announcement: modinfo.tdf support to be dropped

Posted: 01 Feb 2010, 13:57
by TradeMark
i see one advantage in lua modinfo.tdf: you can actually add URL's there! god damnit it was annoying to make a workaround to read modinfo.tdf with PHP when there was URL's. // = comment >_>

Re: Important announcement: modinfo.tdf support to be dropped

Posted: 01 Feb 2010, 14:00
by smoth
you talkin about this line?

Re: Important announcement: modinfo.tdf support to be dropped

Posted: 01 Feb 2010, 14:06
by TradeMark
nah, this line:

Code: Select all

URL=http://taspring.clan-sy.com/;
youre not the only one who uses URL tag.

Re: Important announcement: modinfo.tdf support to be dropped

Posted: 01 Feb 2010, 16:44
by R-TEAM
Hi,
Auswaschbar wrote:
R-TEAM wrote:Hi,

o.k. - found the Error !
It is IZArc !<<

If i crunch the sdz files with 7z (as zips) too, all run flawles.
Maybe this is the reason of the error in "replace" too ..??
But a bit bad that spring dont say that is a problem with the archive ...
You checked the infolog?
not 100% line for line ....
search for errors relevant with "no loading" or "not found" ...
Nut sure, was another error that i cant remember, but none that
i aware ...

And the unitsync log was o.k. - no error

Re: Important announcement: modinfo.tdf support to be dropped

Posted: 13 Apr 2015, 13:35
by 8611
2010 was five years ago.
"new" modinfo.lua is at https://springrts.com/wiki/Modinfo.lua
https://springrts.com/wiki/EngineChange ... ontentDevs or other changelogs to look through/document years old stuff