Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Tiberian Technologies Forum » Now collecting scripts 4.1 bugs  () 2 Votes
Now collecting scripts 4.1 bugs [message #488287] Wed, 02 July 2014 19:36 Go to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

As has been mentioned in a few threads, TT are looking into the possibility of continued scripts development for Renegade. I cant talk more about this or who might be doing the work but i want to throw open this thread to collect any bugs or issues people have in 4.1 that they want fixed or sorted. Or feautre requests they want conhsidered (e.g. building revival). I am NOT promising that anything in this thread will be implemented, just that posting it here will increase its chances of being implemented in a future scripts relesse for Renegade, if any.

Feel free to either link existing threads or post directly about issues.


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
Re: Now collecting scripts 4.1 bugs [message #488292 is a reply to message #488287] Wed, 02 July 2014 22:12 Go to previous messageGo to next message
dblaney1 is currently offline  dblaney1
Messages: 358
Registered: March 2014
Location: United States
Karma: 0
Commander
One thing I have been wanting is to use the code/logic from the sidebar but apply it to a remake of the stock pt interface. That way mappers can get the new features of the sidebar in a more familiar form factor.

Also add a 5th row to the sidebar and get rid of the blank space at the top. 4 rows is very cramped. Move the refill button to the bottom of the left side instead of the top so it ends up on the same key as the stock refill button (hotkey 5) so its consistent across maps. Right now its responsible for many accidental purchases of the first item on the right side.

A get_clouds, get_weather methods. There are set methods but unfortunately no way to get the current weather or the map's weather. Even just getting the maps default weather/clouds would be sufficient. This would be very useful for ion storm crates etc. Need a way to set it back to the original weather after the storm is done.


A few default auxiliary keys in the default keys.cfg for scripters to use for keyhooks without making clients have to download or add them to their keys.cfg.

Switch radar mode in the middle of a game or atleast between maps. We force our players to have the latest scripts version so stock clients aren't an issue.




I'll put together a list of bugs in a little bit. Gotta get them together.

[Updated on: Wed, 02 July 2014 22:36]

Report message to a moderator

Re: Now collecting scripts 4.1 bugs [message #488296 is a reply to message #488292] Thu, 03 July 2014 01:22 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
dblaney1 wrote on Thu, 03 July 2014 06:12

A get_clouds, get_weather methods. There are set methods but unfortunately no way to get the current weather or the map's weather. Even just getting the maps default weather/clouds would be sufficient. This would be very useful for ion storm crates etc. Need a way to set it back to the original weather after the storm is done.



WeatherMgrClass::Get_* does that already


http://steamsignature.com/card/1/76561197975867233.png
Re: Now collecting scripts 4.1 bugs [message #488297 is a reply to message #488287] Thu, 03 July 2014 01:41 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

danpaul88 wrote on Thu, 03 July 2014 18:22

WeatherMgrClass::Get_* does that already

Except that those functions aren't exposed to or accessible by scripts.

Going over the requests just to advise what is and isn't possible (not to promise that any specific thing will actually be done), firstly, making it possible to use the sidebar logic with a PT-style dialog, that cant be done (the logic underlying the sidebar is too closely tied to the way the sidebar does things with the up and down arrows and such rather than the PT way of doing things with all the icons laid out)

Secondly, no, extra buttons wont be added to the sidebar.

Thirdly, yes it is possible to change the hot key assignments for the sidebar (or rather make them changeable with some ini keywords) so you can assign "5" to refill. The buttons wont be moved though.

If weather stuff was to be added, the following engine calls would be added: (and yes they would call WeatherMgrClass::Get_* and BackgroundMgrClass::Get_* internally)
void Get_Clouds(float &cloudcover, float &gloominess);
void Get_Lightning(float &intensity, float &startdistance, float &enddistance, float &heading, float &distribution);
void Get_Wind(float &heading, float &speed, float &variability);
int Get_Precipitation(float &density); //returns 0 for rain, 1 for snow, 2 for ash or 3 for none, probably with some #defines to make it easier

No plans for extra keyhooks.

Switching radar mode is definatly possible, how risky it is we have yet to identify.


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
Re: Now collecting scripts 4.1 bugs [message #488302 is a reply to message #488297] Thu, 03 July 2014 06:25 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3809
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
I would like a feature that allows a map to add a key to a client's key.cfg.

For example, I made an Asteroids map a while back that is 4.0 capable, however the downloader isn't much good for it as it doesn't provide a way for the client to get the custom keys needed for them to play. For example it requires spacebar from all players to start the game, if someone didn't have a keys config with all the logical mappings the map needs they won't be able to play.

jonwil wrote on Thu, 03 July 2014 02:41


Secondly, no, extra buttons wont be added to the sidebar.


While on the topic, I think at the very least we should add the side bar key definitions so new players have at least the option by default to have a working sidebar.

--------------------------------------------------------------
jonwil wrote on Thu, 03 July 2014 02:41


int Get_Precipitation(float &density); //returns 0 for rain, 1 for snow, 2 for ash or 3 for none, probably with some #defines to make it easier


This doesn't seem that useful, in Rp2 there are times where its raining and snowing at the same time (IE sleet) so I don't really know how this would work for that.


While on the topic of weather I'd also like to restate the request to make client specific weather.

----------------------------------------------------------------
Another feature I'd like to request is the ability to change the time of day (IE the sky color) which would be extremely useful for me when I make coop maps.
Reason for request with specific example from my coop Renegade map.




[Updated on: Thu, 03 July 2014 06:42]

Report message to a moderator

Re: Now collecting scripts 4.1 bugs [message #488303 is a reply to message #488297] Thu, 03 July 2014 07:04 Go to previous messageGo to next message
dblaney1 is currently offline  dblaney1
Messages: 358
Registered: March 2014
Location: United States
Karma: 0
Commander
jonwil wrote on Thu, 03 July 2014 01:41


If weather stuff was to be added, the following engine calls would be added: (and yes they would call WeatherMgrClass::Get_* and BackgroundMgrClass::Get_* internally)
void Get_Clouds(float &cloudcover, float &gloominess);
void Get_Lightning(float &intensity, float &startdistance, float &enddistance, float &heading, float &distribution);
void Get_Wind(float &heading, float &speed, float &variability);
int Get_Precipitation(float &density); //returns 0 for rain, 1 for snow, 2 for ash or 3 for none, probably with some #defines to make it easier





This sounds like exactly what I was looking for. Hope this gets implemented. Shouldn't be too difficult since essentially everyone of these is a standard public get method for private variables that already have set functions.

[Updated on: Thu, 03 July 2014 07:06]

Report message to a moderator

Re: Now collecting scripts 4.1 bugs [message #488304 is a reply to message #488287] Thu, 03 July 2014 07:17 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

per-client weather isn't going to happen.
I didn't even know it was possible to have multiple precipitation types going at once.


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
Re: Now collecting scripts 4.1 bugs [message #488305 is a reply to message #488287] Thu, 03 July 2014 07:18 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

dynamic sky color ain't happening either, the lighting system would never be able to handle it.


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
Re: Now collecting scripts 4.1 bugs [message #488307 is a reply to message #488305] Thu, 03 July 2014 07:31 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3809
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
jonwil wrote on Thu, 03 July 2014 08:18

dynamic sky color ain't happening either, the lighting system would never be able to handle it.


Oh I don't care if the lighting doesn't sync up, just like the nuke sky doesn't turn anything red, its just an effect for the mood.


Re: Now collecting scripts 4.1 bugs [message #488309 is a reply to message #488302] Thu, 03 July 2014 07:52 Go to previous messageGo to next message
Ethenal is currently offline  Ethenal
Messages: 2532
Registered: January 2007
Location: US of A
Karma: 0
General (2 Stars)

Jerad Gray wrote on Thu, 03 July 2014 08:25

I would like a feature that allows a map to add a key to a client's key.cfg.
+1 this, this would be a greatly useful feature for people that don't even know keys.cfg, or have an empty (or nonexistent) one for whatever reason.

Additionally, maybe you could make the client display what keys it has bound, like in the spirit of the old "mapch" command - it might require a netcode change (which I can imagine you might not want to/can do) to send all of the Logical/Physical keys that are bound for a player, but I think it'd be greatly useful. However, if the Jerad's first request could be added, then this matters a lot less.

Thanks for your work gentlemen Wink


-TLS-DJ-EYE-K wrote on Mon, 18 March 2013 07:29

Instead of showing us that u aren't more inteligent than a Toast, maybe you should start becomming good in renegade Thumbs Up

Re: Now collecting scripts 4.1 bugs [message #488322 is a reply to message #488287] Thu, 03 July 2014 17:11 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

The sidebar doesn't require any mappings in keys.cfg


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
Re: Now collecting scripts 4.1 bugs [message #488325 is a reply to message #488287] Thu, 03 July 2014 18:10 Go to previous messageGo to next message
dubstar is currently offline  dubstar
Messages: 49
Registered: October 2012
Location: England, UK
Karma: 0
Recruit
I have had a problem since the first release of 4.1, atm I play with 4.0 patch 1 but will upgrade to the latest scripts and make a video within the next few days.

The problem doesn't seem to be happening after updating Smile

[Updated on: Sat, 05 July 2014 15:34]

Report message to a moderator

Re: Now collecting scripts 4.1 bugs [message #488512 is a reply to message #488287] Fri, 11 July 2014 02:05 Go to previous messageGo to next message
zunnie is currently offline  zunnie
Messages: 2959
Registered: September 2003
Location: Netherlands
Karma: 0
General (2 Stars)

http://www.zunnie.nl/renegade/video/Ladder_Transition_Bug.mp4

Whenever you use the ladder and get off of it you can walk through vehicles for some reason.
Entering the vehicle and exiting it fixes the collision problem.


https://multiplayerforums.com/uploads/monthly_2018_03/TCW2_Signature.png.6236a0dbc6e1e53472a18fe8cd15e47b.png
Re: Now collecting scripts 4.1 bugs [message #488513 is a reply to message #488287] Fri, 11 July 2014 04:17 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
I reported that bug like two years ago and it was fixed then. Odd that it's happening again.

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Re: Now collecting scripts 4.1 bugs [message #488514 is a reply to message #488512] Fri, 11 July 2014 06:47 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3809
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
zunnie wrote on Fri, 11 July 2014 03:05

http://www.zunnie.nl/renegade/video/Ladder_Transition_Bug.mp4

Whenever you use the ladder and get off of it you can walk through vehicles for some reason.
Entering the vehicle and exiting it fixes the collision problem.

Probably in place to keep you from colliding with the vehicle you are driving if you pass through a ladder zone.


Re: Now collecting scripts 4.1 bugs [message #488517 is a reply to message #488287] Fri, 11 July 2014 07:07 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

The bug seems to be that it doesn't reset after you leave the ladder zone sometimes.


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
Re: Now collecting scripts 4.1 bugs [message #488518 is a reply to message #488517] Fri, 11 July 2014 07:46 Go to previous messageGo to next message
EvilWhiteDragon is currently offline  EvilWhiteDragon
Messages: 3751
Registered: October 2005
Location: The Netherlands
Karma: 0
General (3 Stars)

jonwil wrote on Fri, 11 July 2014 16:07

The bug seems to be that it doesn't reset after you leave the ladder zone sometimes.


Probably because you're in a vehicle I'd say.


http://www.blackintel.org/usr/evilwhitedragon/pointfix.gif
BlackIntel admin/founder/PR dude (not a coder)
Please visit http://www.blackintel.org/

V, V for Vendetta

People should not be afraid of their governments.
Governments should be afraid of their people.
Re: Now collecting scripts 4.1 bugs [message #488572 is a reply to message #488512] Sun, 13 July 2014 06:59 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

zunnie wrote on Fri, 11 July 2014 19:05

http://www.zunnie.nl/renegade/video/Ladder_Transition_Bug.mp4

Whenever you use the ladder and get off of it you can walk through vehicles for some reason.
Entering the vehicle and exiting it fixes the collision problem.

Ok, when you exit a ladder, the soldier is using a special collision type called "SOLDIER_GHOST". Basically this is what makes sure you dont collide with stuff when you first climb off (e.g. vehicles, other soldiers etc)

There is code that says "if the player is not colliding with anything, switch the player back to normal collision". What this code does is to compare the bounding box of the soldier (the one in state SOLDIER_GHOST) with the bounding box of every PhysicalGameObj in the level to look for anything the soldier is colliding with. If it finds an object with an overlapping bounding box, the soldier remains in SOLDIER_GHOST state otherwise it turns to normal SOLDIER state.

Among other things this means that the soldier will remain in SOLDIER_GHOST state when its worldbox collides with the worldbox of any vehicles in the scene including the Tesla Coil in the test map Zunnie has. (which seems to be rigged as a vehicle)

I will be talking to Saberhawk about if there is a way we can improve this.


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
Re: Now collecting scripts 4.1 bugs [message #488575 is a reply to message #488572] Sun, 13 July 2014 08:53 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3809
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
So, I've got a package which has both modified temps and objects in it, I pushed it up onto my server with the new package system, clients are able to download and join fine.

I have ran into one major issue however, for some reason if I don't go into the old school "svrcfg_cnc" and put "ColonyZ416.pkg" into the "ModName" setting the server doesn't server right?

For example, half the time when a player tries to join they just flat out crash, I tried debugging the player but it seems the code usually explodes somewhere in bandtest.dll.

Other times the player does successfully join, and while the modified PT's show up right, and they appear as the correct spawn character, they can't use pt's or move through any of the teleports. In addition the player doesn't have any of the new weapons on the map.


But if I put the package name into the svrcfg_cnc.cfg file it all works right. The only downside to this is that obviously only that one package can be rotated.


Re: Now collecting scripts 4.1 bugs [message #488578 is a reply to message #488287] Sun, 13 July 2014 11:34 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
This might explain why we keep seeing infantry walking thru the service depot etc in barnz too...

http://steamsignature.com/card/1/76561197975867233.png
Re: Now collecting scripts 4.1 bugs [message #488645 is a reply to message #488287] Tue, 15 July 2014 20:28 Go to previous messageGo to next message
zunnie is currently offline  zunnie
Messages: 2959
Registered: September 2003
Location: Netherlands
Karma: 0
General (2 Stars)

This 'duplicate id' is getting kind of annoying now.
Is there any way to undo that change in 4.1? I mean in stock it worked fine...
It's getting ridiculous nowadays. Every map at least 4-8 people crash out and have to rejoin because of it, sometimes more.


https://multiplayerforums.com/uploads/monthly_2018_03/TCW2_Signature.png.6236a0dbc6e1e53472a18fe8cd15e47b.png
Re: Now collecting scripts 4.1 bugs [message #488650 is a reply to message #488287] Wed, 16 July 2014 01:35 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
What is "duplicate ID" ?

http://steamsignature.com/card/1/76561197975867233.png
Re: Now collecting scripts 4.1 bugs [message #488652 is a reply to message #488287] Wed, 16 July 2014 05:00 Go to previous messageGo to next message
Ethenal is currently offline  Ethenal
Messages: 2532
Registered: January 2007
Location: US of A
Karma: 0
General (2 Stars)

I'm assuming he's referring to that feature in 4.1 that causes the game to exit if it detects two objects with the same network IDs... I'm fairly sure the reason it crashes is because, you know, having identical "unique IDs" is like having non-unique primary keys in an SQL database - you won't be able to pick out the offending keys effectively, because selecting by the (supposed to be) unique ID will get you more than one entry.

I presume it crashes so that it forces the map maker to fix the problem.


-TLS-DJ-EYE-K wrote on Mon, 18 March 2013 07:29

Instead of showing us that u aren't more inteligent than a Toast, maybe you should start becomming good in renegade Thumbs Up

Re: Now collecting scripts 4.1 bugs [message #488656 is a reply to message #488652] Wed, 16 July 2014 05:55 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
If that is what he is referring to then yes, it deliberately crashes out to force you to fix your maps.

http://steamsignature.com/card/1/76561197975867233.png
Re: Now collecting scripts 4.1 bugs [message #488661 is a reply to message #488287] Wed, 16 July 2014 13:38 Go to previous messageGo to previous message
StealthEye is currently offline  StealthEye
Messages: 2518
Registered: May 2006
Location: The Netherlands
Karma: 0
General (2 Stars)

He means crashes where the client crashdump indicates that a network object creation message was sent for one object, while an object with the same id (but a different object type!) already existed. This should never happen normally. It supposedly happens even for maps that do not have duplicate IDs.

Before 4.1, this was not detected, and caused inconsistencies later in the game (missing objects for some clients, incorrect state, or crashes in hard-to-understand locations). 4.1 detects this, and crashes the client because that's the only way to handle the inconsistency without causing side-effect bugs that are hard to understand/track down, and that cause undefined behavior in the game. Apparently, in some cases inconsistencies do still happen. The right way to fix this is to find out why the client creates two objects with the same id.


BlackIntel admin/founder/coder
Please visit http://www.blackintel.org/

[Updated on: Wed, 16 July 2014 13:39]

Report message to a moderator

Previous Topic: 4.1 not loading my .ldd files?
Next Topic: Work is being resumed on scripts for Renegade
Goto Forum:
  


Current Time: Thu Nov 21 13:52:35 MST 2024

Total time taken to generate the page: 0.01251 seconds