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: 22309
Joined: 13 Jan 2005, 00:46

model.name is something different now?

Post by smoth »

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.
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Re: model.name is something different now?

Post by Kloot »

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.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6240
Joined: 29 Apr 2005, 01:14

Re: model.name is something different now?

Post by FLOZi »

fwiw https://springrts.com/wiki/Gamedev:UnitDefs#General wiki is up-to-date in that respect. (seems direct tag links are borked atm)
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: model.name is something different now?

Post by smoth »

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

Return to “Game Development”