Need help with forking.

Need help with forking.

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Super Mario
Posts: 823
Joined: 21 Oct 2008, 02:54

Need help with forking.

Post by Super Mario »

Hi, I am unable to hook the chickens from BA to the other mod that I desire, it keeps calling itself BA when I wanted to be part of the other mod. Does it has something to do with the mod info file or I am missing something?
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Need help with forking.

Post by Forboding Angel »

You might wanna use the survival spawner from evo or gundam. I'm pretty sure that chickens that were shoehorned into BA were more or less pretty hardcoded (and by this point, really really old).
Super Mario
Posts: 823
Joined: 21 Oct 2008, 02:54

Re: Need help with forking.

Post by Super Mario »

Forboding Angel wrote:You might wanna use the survival spawner from evo or gundam. I'm pretty sure that chickens that were shoehorned into BA were more or less pretty hardcoded (and by this point, really really old).
I need to know what parts do I need to make changes besides the modinfo.lua file.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Need help with forking.

Post by smoth »

Changes for what precisely?
Super Mario
Posts: 823
Joined: 21 Oct 2008, 02:54

Re: Need help with forking.

Post by Super Mario »

smoth wrote:Changes for what precisely?
Basically disconnecting BA and connecting to the other mod, so that I can have chicken defense.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Need help with forking.

Post by smoth »

Still ambiguous.
User avatar
Wombat
Posts: 3379
Joined: 15 Dec 2008, 15:53

Re: Need help with forking.

Post by Wombat »

is that even possible ? ba chickens use ba content... its like trying to play wc3 frozen throne without wc3. *newb idea*
Super Mario
Posts: 823
Joined: 21 Oct 2008, 02:54

Re: Need help with forking.

Post by Super Mario »

Wombat wrote:is that even possible ? ba chickens use ba content... its like trying to play wc3 frozen throne without wc3. *newb idea*
And I'm planning to get it use the content found in the other mod, if I have a slight idea on what I'm suppose to do.
User avatar
oksnoop2
Posts: 1207
Joined: 29 Aug 2009, 20:12

Re: Need help with forking.

Post by oksnoop2 »

What steps have you taken exactly? (pastebins please)
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Need help with forking.

Post by smoth »

Wombat wrote:is that even possible ? ba chickens use ba content... its like trying to play wc3 frozen throne without wc3. *newb idea*
see this thread womb
User avatar
Wombat
Posts: 3379
Joined: 15 Dec 2008, 15:53

Re: Need help with forking.

Post by Wombat »

well, i thought that if he wants BA chicken then he needs BA units as well. then nvm, like i said newb idea D:
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Need help with forking.

Post by Forboding Angel »

dude.. just copy the files. It's only like 2 files the gadget and the config. At least, in evo that's all it is.
Super Mario
Posts: 823
Joined: 21 Oct 2008, 02:54

Re: Need help with forking.

Post by Super Mario »

This isn't rocket science. I just want to used content from another mod. That's all, now if you can get it to used content from your mods, then by all means tell me the progress of the fork then.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Need help with forking.

Post by Forboding Angel »

Super Mario wrote:it keeps calling itself BA
What is IT?
Super Mario
Posts: 823
Joined: 21 Oct 2008, 02:54

Re: Need help with forking.

Post by Super Mario »

Forboding Angel wrote:
Super Mario wrote:it keeps calling itself BA
What is IT?
Tech annihilation.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Need help with forking.

Post by smoth »

I'd help you fork but forb does lots of forking and can help you more. Me I only fork one thing.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Need help with forking.

Post by knorke »

Never made a mutator but since it seems nobody posted a clear answer I tried myself for the lolz.
Overwrote/deleted the original file but I think I used BAChickens215(BA712).sd7

First had a look at:
http://springrts.com/wiki/Modinfo.lua#Mutator
After some trial&error I made a modinfo.lua that showed up in Spring.exe:

Code: Select all

return {
  name="AAAAAST Chicken Defense",
  description="Tanks and Chickens lol",
  shortGame="ST",
  shortName="ST",
  version="132",
  mutator="AAAtestlol",
  game="Spring Tanks",
  modtype=1,
  depend = {
    "Spring Tanks SDD",
  },
}
I am still a bit unsure what excatly goes in the depend= field, appearently not the filename but what gets displayed in spring.exe mod list.

So that thing started but then crashed during loading:

[f=0000000] Loading unit definitions
[f=0000000] Caught content exception: WARNING: Couldn't find a MoveClass named akbot2 (used in UnitDef: chicken1)
[f=0000000] Content error WARNING: Couldn't find a MoveClass named akbot2 (used in UnitDef: chicken1)


So some of the units rely on entries in movedef of BA, which of course do not exist in all games.
Basically that means it is not possible to just plug BA chickens into any game.
I guess copying over the movedef from BA would solve that. Or maybe you are lucky and your mod is based on BA because then those entries might even exist in it too.
There was also a long list of missing sounds.

Now the gay thing:
It seems that spring.exe/unitsync does not always refresh the modlist.
ie I changed entries in the modinfo.lua of the mutator like the version and Spring would still show the old value after restart.
That of course makes testing a bit annoying. Renaming the mutator file seems to make it re-read the mods correctly.
ie just change between naming blub_chicken.sdd and bla_chicken.sdd everytime you change something so you are sure the change was noticed.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Need help with forking.

Post by Forboding Angel »

smoth wrote:I'd help you fork but forb does lots of forking and can help you more. Me I only fork one thing.
lol
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6240
Joined: 29 Apr 2005, 01:14

Re: Need help with forking.

Post by FLOZi »

It seems that spring.exe/unitsync does not always refresh the modlist.
ie I changed entries in the modinfo.lua of the mutator like the version and Spring would still show the old value after restart.
Delete cache/ArchiveCache.lua.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Need help with forking.

Post by Forboding Angel »

Fuck that noise. Killing archive cache makes for a LOOOOOONG time to rebuild next time you start up anything that uses unitsync. Just change the name of your directory so that unitsync has to rehash it.
Post Reply

Return to “Game Development”