model.name is something different now?

model.name is something different now?

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

Post Reply
User avatar
smoth
Posts: 22300
Joined: 13 Jan 2005, 00:46

model.name is something different now?

Post by smoth » 03 Oct 2018, 16:57

Trying to get the last version of LUPS working in my game, there is a bunch of what I suspect is bitrott here.

Anyway. there is a call to unitdef[uid].model.

Code: Select all

local name = UnitDefs[self.unitDefID].model.name
name which i never used before, was this replaced? a forum search pulls up iffy results so I am starting a thread so the answer will be out there.
1 x

Kloot
Spring Developer
Posts: 1865
Joined: 08 Oct 2006, 16:58

Re: model.name is something different now?

Post by Kloot » 03 Oct 2018, 17:17

Yes, UnitDefs[n].model.name became (after a slight detour) UnitDefs[n].modelname for performance reasons: https://github.com/spring/spring/blob/d ... g.txt#L247

In case you missed it and to avoid doing potential double work, grab the latest maintenance build instead of 104.0: https://springrts.com/dl/buildbot/default/maintenance/

Also, welcome back.
2 x

User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6109
Joined: 29 Apr 2005, 01:14

Re: model.name is something different now?

Post by FLOZi » 03 Oct 2018, 22:18

fwiw https://springrts.com/wiki/Gamedev:UnitDefs#General wiki is up-to-date in that respect. (seems direct tag links are borked atm)
1 x

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

Re: model.name is something different now?

Post by smoth » 04 Oct 2018, 15:50

Kloot wrote:
03 Oct 2018, 17:17
Yes, UnitDefs[n].model.name became (after a slight detour) UnitDefs[n].modelname for performance reasons: https://github.com/spring/spring/blob/d ... g.txt#L247

In case you missed it and to avoid doing potential double work, grab the latest maintenance build instead of 104.0: https://springrts.com/dl/buildbot/default/maintenance/

Also, welcome back.
Thanks for the info kloot!

I will as soon as I get home grab it. I cannot promise I will be the ubiquitus poster I used to be, having a kid is my present "project" and the absolute best miniature I have in my home.
0 x

Post Reply

Return to “Game Development”

cron