Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Cheaper units on the stock maps
Cheaper units on the stock maps [message #461372] Sat, 07 January 2012 11:59 Go to next message
Spoony is currently offline  Spoony
Messages: 3915
Registered: January 2006
Karma: 0
General (3 Stars)
Tactics & Strategies Moderator
I'd like to be able to tweak the costs of some of the Renegade units, but this only needs doing on the stock maps. Would it be feasible to make copies of the stock maps which are otherwise identical to the originals but with a few unit prices tweaked?

Unleash the Renerageâ„¢

Renedrama [ren-i-drah-muh]
- noun
1. the inevitable criticism one receives after doing something awful
Re: Cheaper units on the stock maps [message #461378 is a reply to message #461372] Sat, 07 January 2012 20:03 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4299
Registered: April 2011
Karma: 0
General (4 Stars)
Yes, it's also possible to change the ammo on all units to infinite in a way that works with 4.0, and all the core settings of objects in the game can be modified. New objects (vehicles/soldiers /weapons/sounds/models/textures) can be added too.

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: Cheaper units on the stock maps [message #461381 is a reply to message #461372] Sat, 07 January 2012 20:40 Go to previous messageGo to next message
Spoony is currently offline  Spoony
Messages: 3915
Registered: January 2006
Karma: 0
General (3 Stars)
Tactics & Strategies Moderator
We've got the infinite infantry ammo working, thanks to your plugin.

What would be the best way to alter the unit costs?


Unleash the Renerageâ„¢

Renedrama [ren-i-drah-muh]
- noun
1. the inevitable criticism one receives after doing something awful
Re: Cheaper units on the stock maps [message #461382 is a reply to message #461372] Sat, 07 January 2012 21:02 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4299
Registered: April 2011
Karma: 0
General (4 Stars)
The infinite ammo plugin itself works correctly, but when loaded on a scripts 4.0 beta 3 server, it won't work. To confirm, buy a shotgunner and check your ammo, it should be finite.

Changing cost is really simple to do, but after doing that you need to compile a new map which is a bit more complicated and could have some issues. I highly suggest finding someone with basic Renegade mapping (or just LevelEdit) skills to do it. But if you want to have someone without any experiences to Renegade mapping do it:

1. Download the Renegade .lvl files from game-maps.net or another mirror.

2. Open the map's .lvl file.

3. Create a new project in the box that pop ups if needed.

http://i.imgur.com/QIQCR.png

4. Check the above screenshot. On the right-side of the LevelEdit GUI, you need to edit 'Character Classes', 'Vehicles', 'Equipment' for both teams, listed under the 'Purchase Settings' folder.

5. Left click on the setting you want to edit and press the 'Temp' button with the green + sign on it.

6. In the box that pops up, set 'Name:' to the same name as what you're editing and open the 'Settings' tab.

7. Edit the costs for all the settings you like.

8. Repeat until your done.

9. Click on File -> Save Presets...

10. Click on File -> Export .Mix and type in a name for the map.

There's four main problems that may occur:

1. Game will crash during loading / No terrain is loaded.

2. Harvesters won't do anything and vehicles don't follow the waypath off the Strip and you will lag thru doors.

3. The FPS is a lot lower than the stock map you're modding (when vsync is turned off).

4. Shadows are incorrect.

All these problems are easy to resolve but they don't always appear, it's best to test out without using the methods to resolve them before testing the map and applying them IF they appear during testing.

After you've done that, save the level, it should create a .ddb (NOT objects.ddb) file in the folder you saved to with the same name as the map, it contains the cost changes and it's easy to apply to other maps without having to manually edit the cost settings for every map. To apply the change to other maps, simply open the .lvl file for the other map, save the level and close LevelEdit, than rename that .ddb file to <map_name>.ddb and place it in the same folder you've saved to. Then open LevelEdit again and it should have applied the cost changes automatically (you should check this anyway), then convert that map to .Mix again and do it for every map.

Also, the modded map will share the same terrain filename with the non-modded map, this could possible clash with the anti-cheat. To check that enable the anti-cheat on a 4.0 server, and load the non-modded version of the map, it should load correctly, then load the modded version of the map, if no anti-cheat admin messages are given after loading the modded version of the map there's no issue with the anti-cheat.


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

[Updated on: Sun, 08 January 2012 15:28]

Report message to a moderator

Re: Cheaper units on the stock maps [message #461383 is a reply to message #461372] Sat, 07 January 2012 21:16 Go to previous messageGo to next message
Spoony is currently offline  Spoony
Messages: 3915
Registered: January 2006
Karma: 0
General (3 Stars)
Tactics & Strategies Moderator
about your ammo plugin, just refill after buying the character = ammo goes infinite. it's fine as long as you remember to do that.

Unleash the Renerageâ„¢

Renedrama [ren-i-drah-muh]
- noun
1. the inevitable criticism one receives after doing something awful
Re: Cheaper units on the stock maps [message #461385 is a reply to message #461372] Sat, 07 January 2012 21:29 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4299
Registered: April 2011
Karma: 0
General (4 Stars)
I can make a modified version of that plugin that automatically refills a player if they successfully purchased something. There's still the issue with ammo being royally screwed up for non-4.0 players but as you won't be supporting them that doesn't matter.

Scripts 4.0 has a feature to take remote screenshots of players with a simple console command and have them be uploaded to a website, will clanwars be using that? (Taking screenshots can be easily automated with an SSGM plugin, e.g. screenshots per interval or when a player types a command, with some rudimentary PHP scripting the screenshots can be datestamped on a site).

To work around the loading time issue, a plugin can be written that requires every player to type in something like "!ready" at the start of every match, after that's done it would kill the harvesters, kill all players and resetting the whole match (death count, score, game timer, credits etc).


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

[Updated on: Sat, 07 January 2012 21:34]

Report message to a moderator

Re: Cheaper units on the stock maps [message #461387 is a reply to message #461385] Sat, 07 January 2012 22:09 Go to previous messageGo to next message
Spoony is currently offline  Spoony
Messages: 3915
Registered: January 2006
Karma: 0
General (3 Stars)
Tactics & Strategies Moderator
iRANian wrote on Sat, 07 January 2012 21:29

I can make a modified version of that plugin that automatically refills a player if they successfully purchased something. There's still the issue with ammo being royally screwed up for non-4.0 players but as you won't be supporting them that doesn't matter.

yeah, that would be great.

Quote:

Scripts 4.0 has a feature to take remote screenshots of players with a simple console command and have them be uploaded to a website, will clanwars be using that? (Taking screenshots can be easily automated with an SSGM plugin, e.g. screenshots per interval or when a player types a command, with some rudimentary PHP scripting the screenshots can be datestamped on a site).

yes, actually that'd be enormously useful for clanwars.

Quote:

To work around the loading time issue, a plugin can be written that requires every player to type in something like "!ready" at the start of every match, after that's done it would kill the harvesters, kill all players and resetting the whole match (death count, score, game timer, credits etc).

yeah, but that would require the enemy to do it too, and i'm not sure everyone can be counted upon to do that

how about the following instead:
when you join the server you can (if you want to) type "!wait" which puts you on the wait list. you stay on the wait list until you leave the server. and at the beginning of each map, gameplay (including harvs) is frozen until all players on the wait list have loaded.

the other option is simply to freeze gameplay for 30 seconds at the start of each map. (preferably with the server playing Trololo)


Unleash the Renerageâ„¢

Renedrama [ren-i-drah-muh]
- noun
1. the inevitable criticism one receives after doing something awful

[Updated on: Sat, 07 January 2012 22:25]

Report message to a moderator

Re: Cheaper units on the stock maps [message #461394 is a reply to message #461372] Sun, 08 January 2012 08:01 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4299
Registered: April 2011
Karma: 0
General (4 Stars)
All the big Counter-Strike (Source) league use the method of everyone having to type that they're ready (and then resetting the match), I could make it freeze all players until everyone types !ready. The problem with !wait is that checking if everyone is loaded can be inaccurate so the game might start when not everyone is loaded, there are also times where the FDS doesn't properly detect if a player is loaded or not (e.g. the bug where in game when you press the 'J' key the unit name of a player is blank).

Freezing gameplay can also be done at the start of the map by freezing all players, then after the 30 seconds are up resetting the game like would have been done with the !ready stuff. But if a player for some reason isn't ready to play the match yet he'll be unlucky.


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

[Updated on: Sun, 08 January 2012 08:04]

Report message to a moderator

Re: Cheaper units on the stock maps [message #461395 is a reply to message #461394] Sun, 08 January 2012 09:04 Go to previous messageGo to next message
Spoony is currently offline  Spoony
Messages: 3915
Registered: January 2006
Karma: 0
General (3 Stars)
Tactics & Strategies Moderator
iRANian wrote on Sun, 08 January 2012 08:01

I could make it freeze all players until everyone types !ready.

Yeah, that's a much better idea. I reckon we should do that. It'll freeze the harvesters too, I hope?

Can we also have a maximum freeze-time - let's say 2 minutes? after which gameplay begins regardless.


Unleash the Renerageâ„¢

Renedrama [ren-i-drah-muh]
- noun
1. the inevitable criticism one receives after doing something awful
Re: Cheaper units on the stock maps [message #461396 is a reply to message #461372] Sun, 08 January 2012 09:13 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4299
Registered: April 2011
Karma: 0
General (4 Stars)
Freezing the Harvester is possible too, but I'd rather have them be destroyed when the match gets reset, so it would emulate the start of a match (credits always get reset so there's no issue with that).

Okay, lemme get that working.

Here's a modified version of the infinite ammo plugin, I couldn't get the infinite ammo to work with the scripts.dll API commands to refill a player, but I was able to make it work by setting the ammo count of the weapon the player is holding to infinite manually 100 milliseconds after he purchased something, with checks to prevent C4 and beacons from getting infinite ammo.


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

[Updated on: Sun, 08 January 2012 09:14]

Report message to a moderator

Re: Cheaper units on the stock maps [message #461401 is a reply to message #461372] Sun, 08 January 2012 09:41 Go to previous messageGo to next message
Spoony is currently offline  Spoony
Messages: 3915
Registered: January 2006
Karma: 0
General (3 Stars)
Tactics & Strategies Moderator
re: harvs being blown up, yeah that would be fine.

thanks for all this.


Unleash the Renerageâ„¢

Renedrama [ren-i-drah-muh]
- noun
1. the inevitable criticism one receives after doing something awful
Re: Cheaper units on the stock maps [message #461405 is a reply to message #461401] Sun, 08 January 2012 10:44 Go to previous messageGo to next message
sla.ro(master) is currently offline  sla.ro(master)
Messages: 610
Registered: September 2010
Location: Romania
Karma: 0
Colonel
warm up is better then !ready, nobody will type !ready, because tbh.. i bet many new ren players don't even know how to use chat Razz

Warm up is used in many FPS games like Unreal, Quake, Day Of Defeat and other.

block any type of damage till game will start and kill all players/all/reset like a new game start and enable damage when warm up is off. should be simple, i will script this on my Lua bot to see Smile


Creator of Mutant Co-Op
Developer of LuaTT

[Updated on: Sun, 08 January 2012 10:45]

Report message to a moderator

Re: Cheaper units on the stock maps [message #461406 is a reply to message #461372] Sun, 08 January 2012 10:55 Go to previous messageGo to next message
Spoony is currently offline  Spoony
Messages: 3915
Registered: January 2006
Karma: 0
General (3 Stars)
Tactics & Strategies Moderator
i think the !ready idea is best. it's just a question of holding gameplay off (including the harvesters) until all players have loaded.

does anyone fancy doing the altered costs for me?


Unleash the Renerageâ„¢

Renedrama [ren-i-drah-muh]
- noun
1. the inevitable criticism one receives after doing something awful
Re: Cheaper units on the stock maps [message #461414 is a reply to message #461372] Sun, 08 January 2012 13:11 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4299
Registered: April 2011
Karma: 0
General (4 Stars)
What cost changes do you want and on what maps?

For the remote screenshot plugin, what do you want it to do? I'm gonna guess upload remote screenshots of all players every X seconds and when a player types a a specific command? Note that I can't test this plugin (although it's really straightforward to write) because I don't own a web server.

Here's the match resetting plugin, it will automatically reset the match after 120 second have expired and it will announce the time remaining until the automatic resetting. After every player has typed !ready it will reset the match, if it happens before the auto-reset. Players can't move until the match has reset. Once the match is reset every player and harvester will get killed, and every player's deaths/kills/score/credits will be set to zero. The map timer will also reset.

I'm looking for a more descriptive name than "Match Reset Plugin". Any suggestions? Tell me if you want to have anything changed.


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

[Updated on: Sun, 08 January 2012 13:21]

Report message to a moderator

Re: Cheaper units on the stock maps [message #461416 is a reply to message #461414] Sun, 08 January 2012 13:32 Go to previous messageGo to next message
Spoony is currently offline  Spoony
Messages: 3915
Registered: January 2006
Karma: 0
General (3 Stars)
Tactics & Strategies Moderator
iRANian wrote on Sun, 08 January 2012 13:11

What cost changes do you want and on what maps?

maps that will be used in clanwars:
Field, City Flying, Walls Flying, Islands, Canyon, Complex, Volcano, Mesa, Under, Walls.

essentially all the stock maps except cityground, hourglass, and glacierfly.

prices (same for all maps)
GDI/Nod Officer: 50
Tib Sydney: 50
Rocket Officer: 150
Patch: 200
Laser Chaingunner: 250
Deadeye/Black Hand sniper: 400
Mobius/Mendoza: 600
Raveshaw/PIC: 800
Havoc/Sakura: 800

unchanged: gunner, chem warrior, sbh, hotwire/tech.

Quote:

For the remote screenshot plugin, what do you want it to do? I'm gonna guess upload remote screenshots of all players every X seconds and when a player types a a specific command?

well... is an upload likely to have any detrimental effect on the subject player's FPS or ping? i guess we can test that.

i'm just finding out how much space i've got for screenshots at clanwars.

Quote:

Here's the match resetting plugin, it will automatically reset the match after 120 second have expired and it will announce the time remaining until the automatic resetting. After every player has typed !ready it will reset the match, if it happens before the auto-reset. Players can't move until the map has reset. Once the map is reset every player and harvester will get killed, and every player's deaths/kills/score/credits will be set to zero. The map timer will also reset.

I'm looking for a more descriptive name than "Match Reset Plugin". Any suggestions? Tell me if you want to have anything changed.

that's great, thanks. as for the name... "Starter Pistol plugin"?


Unleash the Renerageâ„¢

Renedrama [ren-i-drah-muh]
- noun
1. the inevitable criticism one receives after doing something awful
Re: Cheaper units on the stock maps [message #461418 is a reply to message #461372] Sun, 08 January 2012 13:51 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4299
Registered: April 2011
Karma: 0
General (4 Stars)
I quickly tested the remote screenshot functionality with ExEric months ago and I didn't notice anything when the screenshots were being taken, I suggest doing a funwar (lobby war?) to test all the plugins and mod maps.

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

[Updated on: Sun, 08 January 2012 13:52]

Report message to a moderator

Re: Cheaper units on the stock maps [message #461428 is a reply to message #461418] Sun, 08 January 2012 14:27 Go to previous messageGo to next message
sla.ro(master) is currently offline  sla.ro(master)
Messages: 610
Registered: September 2010
Location: Romania
Karma: 0
Colonel
i hope those changes price changes won't be forced on TT like that negative points on neutral.

screenshoot thing makes lag like hell when upload bandwidth is small


Creator of Mutant Co-Op
Developer of LuaTT
Re: Cheaper units on the stock maps [message #461430 is a reply to message #461372] Sun, 08 January 2012 15:11 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4299
Registered: April 2011
Karma: 0
General (4 Stars)
Here's the remote screenshot plugin. You can configure the interval at which remote screenshots are made (default every 60 seconds). If a player types !ss remote screenshots are made for every player. Installation instructions are inside the ZIP file.

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: Cheaper units on the stock maps [message #461431 is a reply to message #461372] Sun, 08 January 2012 15:15 Go to previous messageGo to next message
bmruze is currently offline  bmruze
Messages: 62
Registered: March 2006
Location: South Carolina
Karma: 1
Recruit

In theory, can't you make a simple script that checks on the character you are purchasing and gives you a refund of (x) credits after that purchase is made? It would probably be easier than trying to reduce the cost of the characters in some other fashion.

If I had my computer in working order I'd whip it up for you but I'm afraid someone else will have to handle that.


https://content.screencast.com/users/bmruze/folders/Jing/media/b3acb17d-6b52-4e10-8183-eae956a12446/2017-09-02_0843.png
Re: Cheaper units on the stock maps [message #461432 is a reply to message #461431] Sun, 08 January 2012 15:22 Go to previous messageGo to next message
Spoony is currently offline  Spoony
Messages: 3915
Registered: January 2006
Karma: 0
General (3 Stars)
Tactics & Strategies Moderator
thanks again.
bmruze wrote on Sun, 08 January 2012 15:15

In theory, can't you make a simple script that checks on the character you are purchasing and gives you a refund of (x) credits after that purchase is made? It would probably be easier than trying to reduce the cost of the characters in some other fashion.

presumably, that would still mean you couldn't buy the unit until you had enough money for its default cost.


Unleash the Renerageâ„¢

Renedrama [ren-i-drah-muh]
- noun
1. the inevitable criticism one receives after doing something awful
Re: Cheaper units on the stock maps [message #461434 is a reply to message #461432] Sun, 08 January 2012 15:58 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4299
Registered: April 2011
Karma: 0
General (4 Stars)
Spoony wrote on Sun, 08 January 2012 15:22

thanks again.
bmruze wrote on Sun, 08 January 2012 15:15

In theory, can't you make a simple script that checks on the character you are purchasing and gives you a refund of (x) credits after that purchase is made? It would probably be easier than trying to reduce the cost of the characters in some other fashion.

presumably, that would still mean you couldn't buy the unit until you had enough money for its default cost.


Yeah, indeed.

Here are the price changed maps. I haven't tested all of them.

http://dl.dropbox.com/u/21865790/clanwars%20modded%20maps%20cost%20changes.zip


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: Cheaper units on the stock maps [message #461499 is a reply to message #461372] Tue, 10 January 2012 07:17 Go to previous messageGo to next message
Spoony is currently offline  Spoony
Messages: 3915
Registered: January 2006
Karma: 0
General (3 Stars)
Tactics & Strategies Moderator
ok, just tested all this in the CWservers:

- !ready command
works perfectly. in fact it works better than i hoped it would, lovely stuff

- unit costs
work perfectly (and again, better than i thought it would, because the PT screens have changed too, showing the correct prices at the time). however, mobius/mendoza costs 800; i'd like them to cost 600 please.

- infinite infantry ammo update
works perfectly for most units (i.e. they start with /999 ammo) except the following:
both rocket officers
gunner
both snipers
both ramjets
PIC/raveshaw

the above units start with their default limited ammo. of course, they can simply refill after purchase, but it would be nice if they didn't have to.


Unleash the Renerageâ„¢

Renedrama [ren-i-drah-muh]
- noun
1. the inevitable criticism one receives after doing something awful

[Updated on: Tue, 10 January 2012 07:22]

Report message to a moderator

Re: Cheaper units on the stock maps [message #461500 is a reply to message #461372] Tue, 10 January 2012 07:31 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4299
Registered: April 2011
Karma: 0
General (4 Stars)
Oh, the 800 cost on Mendoza/Mobius was a misread, I also was thinking why'd you want them at 800 when they're worse than jets/pics. I'll fix that.

For the !ready command stuff, if you buy another character before the match get reset it prevents you from moving, that's what it's supposed to do instead of the laggy sliding back to your spawn position when you initially spawn. Dunno if you care about that but I might be able to do some stuff to prevent players from moving that way instead of the laggish sliding.

I found out why the infinite ammo doesn't work on them, I'll fix that.


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

[Updated on: Tue, 10 January 2012 07:32]

Report message to a moderator

Re: Cheaper units on the stock maps [message #461501 is a reply to message #461500] Tue, 10 January 2012 07:34 Go to previous messageGo to next message
Spoony is currently offline  Spoony
Messages: 3915
Registered: January 2006
Karma: 0
General (3 Stars)
Tactics & Strategies Moderator
thanks again.
iRANian wrote on Tue, 10 January 2012 07:31

For the !ready command stuff, if you buy another character before the match get reset it prevents you from moving, that's what it's supposed to do instead of the laggy sliding back to your spawn position when you initially spawn. Dunno if you care about that but I might be able to do some stuff to prevent players from moving that way instead of the laggish sliding.

Doesn't matter tbh


Unleash the Renerageâ„¢

Renedrama [ren-i-drah-muh]
- noun
1. the inevitable criticism one receives after doing something awful
Re: Cheaper units on the stock maps [message #461502 is a reply to message #461372] Tue, 10 January 2012 08:34 Go to previous messageGo to previous message
iRANian is currently offline  iRANian
Messages: 4299
Registered: April 2011
Karma: 0
General (4 Stars)
Here are the fixed maps.

http://dl.dropbox.com/u/21865790/clanwars%20modded%20maps%20cost%20changes%20v1. 1.zip

Did you get a chance to try out the remote screenshot plugin?


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

[Updated on: Tue, 10 January 2012 08:35]

Report message to a moderator

Previous Topic: Sidebar PT
Next Topic: camera help
Goto Forum:
  


Current Time: Fri May 17 13:19:53 MST 2024

Total time taken to generate the page: 0.01227 seconds