Important announcement: modinfo.tdf support to be dropped - Page 3

Important announcement: modinfo.tdf support to be dropped

Resources to get you going on your new project, or to help you over some emergent problems during your development cycle.

Moderator: Moderators

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

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

Post 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!
Attachments
1256266952595.jpg
1256266952595.jpg (30.87 KiB) Viewed 2484 times
R-TEAM
Posts: 177
Joined: 22 Jan 2009, 19:25

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

Post 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 .....??
R-TEAM
Posts: 177
Joined: 22 Jan 2009, 19:25

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

Post 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 ...
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7032
Joined: 16 Nov 2004, 13:08

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

Post 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.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

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

Post 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?
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

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

Post 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 >_>
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

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

Post by smoth »

you talkin about this line?
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

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

Post by TradeMark »

nah, this line:

Code: Select all

URL=http://taspring.clan-sy.com/;
youre not the only one who uses URL tag.
R-TEAM
Posts: 177
Joined: 22 Jan 2009, 19:25

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

Post 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
8611
XTA Developer
Posts: 242
Joined: 29 Dec 2014, 08:22

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

Post 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
Post Reply

Return to “Game Development Tutorials & Resources”