Breaking Changes - 95.0+ - Page 2

Breaking Changes - 95.0+

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

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

Re: Breaking Changes - 95.0+

Post by FLOZi »

gamedata/messages.lua will be removed.

Behaviour is readily replaced with a widget, or do your own.
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10450
Joined: 24 Jan 2006, 21:12

Re: Breaking Changes - 95.0+

Post by PicassoCT »

Image
Attachments
JustDraftThem.jpg
(300.56 KiB) Downloaded 2 times
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: Breaking Changes - 95.0+

Post by Silentwings »

Another thing: aircraft acceleration and brakerates need to be recalibrated for new air movement. Aircraft with hoverattack=true need different attention to others.

(As I understand it, the old engine behaviour didn't match what it was meant to do here so it's really a bugfix :p)
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: Breaking Changes - 95.0+

Post by Silentwings »

Another one - partially submerged stuff with its aimpoint below the waterline is not hitable by land weapons, because the weapon fires at the aimpoint and the water absorbs the weapon before it reaches the target.

This gadget fixes it for stationary water stuff and for ships (provided you use SHIP as a modCategory, else you'll have to identify ships some other way).
http://imolarpg.dyndns.org/trac/balatest/changeset/1838

edit: after https://github.com/spring/spring/commit ... fe02fc5c25 that gadget won't work but I can't see a way to fix this now.


It's been fixed in spring+git :)
Last edited by Silentwings on 14 Nov 2013, 22:35, edited 2 times in total.
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: Breaking Changes - 95.0+

Post by Google_Frog »

Are you sure that is a new problem? I think land based weapons have always fired at the aimpoint. The difference is that torpedoes used to be smarter.

I'm sure that units aimed at the aimpoint in 91.0. I know because I had to move some aimpoints upwards on amphibious units to prevent them from being able to fire on land without retribution.
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: Breaking Changes - 95.0+

Post by Silentwings »

Are you sure that is a new problem? I think land based weapons have always fired at the aimpoint.
Yes - 91 is too long ago for me to remember now (sorry) but in 94 if you near-totally submerge a very large unit (e.g. corkrog) and get a laser to fire at it, the laser will fire at at the join between the model and the watrer, even if only the krogs head is above water. In the same situation in 95 & 95.0.1-35, the laser won't fire. I assume the same thing happens on all units but its most noticeable on large ones.
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: Breaking Changes - 95.0+

Post by Google_Frog »

Wow that's a nice feature. I want it back.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7049
Joined: 16 Nov 2004, 13:08

Re: Breaking Changes - 95.0+

Post by zwzsg »

FLOZi wrote:gamedata/messages.lua will be removed.

Behaviour is readily replaced with a widget, or do your own.
There is a bug in this game_messages.lua, around line 36-44:
  • msgArray has gone out of scope when it's stored
I suggest to move luaMsgs[label:lower()] = msgArray just above the end (and also fix indentation).

Also, my old messages.tdf had only a single label, [Team%i(%s) is no more], which matches neither of the death message of that widget.

Lastly, this version assumes all teams are played by a single human.

So I changed it into: http://pastebin.com/7sUqv9iS which correctly handle the cases of:
- Shared team control
- A.I. bots
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Breaking Changes - 95.0+

Post by Jools »

[redacted]
Last edited by Jools on 11 Dec 2013, 16:18, edited 1 time in total.
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: Breaking Changes - 95.0+

Post by Silentwings »

(i.e. player has placed commander on map but not clicked ready)
You can detect this with AllowStartPosition (I think maybe also from GameSetup but haven't got time to test right now).
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Breaking Changes - 95.0+

Post by Jools »

FLOZi wrote:

Code: Select all

    .floater
This one is replaced by .floatOnWater for the protocol.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Breaking Changes - 95.0+

Post by knorke »

Jools wrote:
FLOZi wrote:

Code: Select all

    .floater
This one is replaced by .floatOnWater for the protocol.
If you write such things into randoms thread you might as well not write it down at all.
Put such things in wiki please: http://springrts.com/wiki/Lua_UnitDefs
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Breaking Changes - 95.0+

Post by Jools »

I cannot edit the wiki so I put it here instead. If someone edits the wiki it should be put here instead imo: http://springrts.com/wiki/Gamedev:UnitDefs
malric
Posts: 521
Joined: 30 Dec 2005, 22:22

Re: Breaking Changes - 95.0+

Post by malric »

Jools wrote:I cannot edit the wiki so I put it here instead.
What do you mean "cannot"? You need to login specifically to the wiki at this page: http://springrts.com/wiki/Special:UserLogin (linked from the bottom of any wiki page).
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Breaking Changes - 95.0+

Post by Jools »

I cannot because one of the moderators blocked me from it. Anyway, this is the thread in which the changes were announced so I think it belongs here as well.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6240
Joined: 29 Apr 2005, 01:14

Re: Breaking Changes - 95.0+

Post by FLOZi »

You have a 1 week block for dragging ridiculous drama on to the wiki. It was issued on the 5th, so tomorrow or Friday you can edit again.

I agree it should be put into the special part of the unitdef tag as other lua accessing info is. tbh knorke is probably right too and it should be cross posted; really that page needs a new full example.
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Breaking Changes - 95.0+

Post by Jools »

There is no drama, it was satire.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6240
Joined: 29 Apr 2005, 01:14

Re: Breaking Changes - 95.0+

Post by FLOZi »

Jools wrote:There is no drama, it was satire.
And completely inappropriate and inaccurate information to put on the wiki.
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Breaking Changes - 95.0+

Post by Jools »

FLOZi wrote:
Jools wrote:There is no drama, it was satire.
And completely inappropriate and inaccurate information to put on the wiki.
I agree. I regret I put it there. But it's also the truth.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Breaking Changes - 95.0+

Post by smoth »

Jools wrote:
FLOZi wrote:
Jools wrote:There is no drama, it was satire.
And completely inappropriate and inaccurate information to put on the wiki.
I agree. I regret I put it there. But it's also the truth.
then you put it in a talk page or a thread. The wiki is there for INFORMATION.
Post Reply

Return to “Game Development”