Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » More Questions
More Questions [message #262182] Thu, 31 May 2007 04:52 Go to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
A)how can i make what char drop when it dies?
B)how can i increase the money flow and speed WITHOUT a harv?
C)in the script theres like a RA_Theif_script how do u use that?
D)ok i already asked about how to make if where you lose damage when you fall and someones said add a script like JAF_Nofalling_Damage or somthing now where do i add that script 2 ?
each chars?
E)ok when i open a mutiplayer lvl file and edit it i see the buildings like wf and air and everything else i cant move it or change the options so my question is how can i move around the buildings and edit there stuff like maybe there heath or what they do and ect because all i know is theres a building and then i click to see settings and nothing happens so ya how can i add buidlings,move buildings and edit there settings like if i wanted to add a another ob on field or move it.....
F)after i somehow learn to fix my spawn points do ui have to edit the presents and save the objects file into the server dir?

please and thank you
Re: More Questions [message #262186 is a reply to message #262182] Thu, 31 May 2007 05:22 Go to previous messageGo to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
joe937465 wrote on Thu, 31 May 2007 07:52

A)how can i make what char drop when it dies?


That is done in the source code of SSAOW, here is a small sample:

void M00_GrantPowerup_Created::Destroyed(GameObject *obj)
{
	if (Settings->DestroyPlayerVeh && Get_Vehicle(obj) != 0) Commands->Apply_Damage(Get_Vehicle(obj),99999,"BlamoKiller",false);
	if (Settings->DropWeapons && WasKilled)
	{
		WasKilled = false;
		DeathPlace = Commands->Get_Position(obj);
		int RandomNum = Commands->Get_Random_Int(1,5);
		if (strstr(Commands->Get_Preset_Name(obj),"CnC_GDI_MiniGunner_0"))
		{
			BackpackScript = Commands->Create_Object("POW_AutoRifle_Player",DeathPlace);
		}
		else if (strstr(Commands->Get_Preset_Name(obj),"CnC_Nod_Minigunner_0"))
		{
			BackpackScript = Commands->Create_Object("POW_AutoRifle_Player_Nod",DeathPlace);
		}


You would need to go through it all and change what is granted, then compile it/

joe937465 wrote on Thu, 31 May 2007 07:52


B)how can i increase the money flow and speed WITHOUT a harv?



http://www.mp-gaming.com/reborn/screenies/joeh3.gif

joe937465 wrote on Thu, 31 May 2007 07:52


C)in the script theres like a RA_Theif_script how do u use that?


Probably requires all clients to have a scripts.dll update to work right.

joe937465 wrote on Thu, 31 May 2007 07:52


D)ok i already asked about how to make if where you lose damage when you fall and someones said add a script like JAF_Nofalling_Damage or somthing now where do i add that script 2 ?
each chars?



Yes, attach it to each character preset under the scripts tab.

joe937465 wrote on Thu, 31 May 2007 07:52


E)ok when i open a mutiplayer lvl file and edit it i see the buildings like wf and air and everything else i cant move it or change the options so my question is how can i move around the buildings and edit there stuff like maybe there heath or what they do and ect because all i know is theres a building and then i click to see settings and nothing happens so ya how can i add buidlings,move buildings and edit there settings like if i wanted to add a another ob on field or move it.....



Those buildings are part of the terrain, you can't move them.
To mod them, under the presets tree in level edit got to the "buildings" part and "mod" the building you want to change health, skin type etc etc.

To add another agt or obilisk server side is a bit tricky.
You would be better off doing it with a modified scripts.dll, but you can actually do it in level edit.

Mod a preset and under the physics tab change the model to look for "enc_nobl.w3d", then hit "make". This will place the obilisks exterior only on the map. Then you need to add all the interior parts (you will find them under tiles -> building aggregates) and place them exactly where they should go in the ob. Then to make it work I am not sure if adding a building controller would work, you may need to make a script and attach it to it.

joe937465 wrote on Thu, 31 May 2007 07:52


F)after i somehow learn to fix my spawn points do ui have to edit the presents and save the objects file into the server dir?



Spawn points are part of the map's .lvl files, so it would be the .lsd and .ldd. Unless you have modified the preset then there is no need to change the objects file. However all the other mods you have made to the presets will require you to do this.



Re: More Questions [message #262364 is a reply to message #262182] Fri, 01 June 2007 04:09 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
1) how can i makie it so where i press E on somthing like a keypad or somthing that u can aces to change me into a char i try a script in there but some reason did not work please help?

Re: More Questions [message #262413 is a reply to message #262182] Fri, 01 June 2007 10:39 Go to previous messageGo to next message
Slave is currently offline  Slave
Messages: 607
Registered: December 2006
Karma: 0
Colonel
Well, that's a funny way of thanking Reborn for the time he put in explaining stuff to you.

gg!
Re: More Questions [message #262514 is a reply to message #262182] Fri, 01 June 2007 18:23 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
well i delete the spawns tha came with the lvl and make my own but all that happens is the map crashes
Re: More Questions [message #262523 is a reply to message #262514] Fri, 01 June 2007 19:29 Go to previous messageGo to next message
BlueThen is currently offline  BlueThen
Messages: 2402
Registered: February 2006
Karma: 0
General (2 Stars)
Put all your questions in one topic for god sakes! Half of the section is filled with your questions...
Re: More Questions [message #262533 is a reply to message #262182] Fri, 01 June 2007 21:15 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
ok reborn i look at this

void M00_GrantPowerup_Created::Destroyed(GameObject *obj)
{
if (Settings->DestroyPlayerVeh && Get_Vehicle(obj) != 0) Commands->Apply_Damage(Get_Vehicle(obj),99999,"BlamoKiller",false);
if (Settings->DropWeapons && WasKilled)
{
WasKilled = false;
DeathPlace = Commands->Get_Position(obj);
int RandomNum = Commands->Get_Random_Int(1,5);
if (strstr(Commands->Get_Preset_Name(obj),"CnC_GDI_MiniGunner_0"))
{
BackpackScript = Commands->Create_Object("POW_AutoRifle_Player",DeathPlace);
}
else if (strstr(Commands->Get_Preset_Name(obj),"CnC_Nod_Minigunner_0"))
{
BackpackScript = Commands->Create_Object("POW_AutoRifle_Player_Nod",DeathPlace);
}


and think i understnad a little bit
but how do i edit these source files like with what porgram?

and when im done where do i save them 2?
Re: More Questions [message #262546 is a reply to message #262182] Fri, 01 June 2007 21:57 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
1) install: http://msdn.microsoft.com/vstudio/express/visualc/
2) Follow [b]all[b] instructions when installing.
Re: More Questions [message #262549 is a reply to message #262182] Sat, 02 June 2007 01:01 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
ok and another random question how can i chnage the repairs guns beams color? i look and says somthing about x.y.z?


and which one i download and install?
http://msdn.microsoft.com/vstudio/express/downloads/default.aspx
the c++ or one of the others?
and where can i find the reg code or do i have to find a boot copy one?

[Updated on: Sat, 02 June 2007 01:03]

Report message to a moderator

Re: More Questions [message #262564 is a reply to message #262182] Sat, 02 June 2007 02:40 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
ok nvm that above but what file out of all them has the weapons drop when dies ? for ctf source files?

[Updated on: Sat, 02 June 2007 02:59]

Report message to a moderator

Re: More Questions [message #262585 is a reply to message #262182] Sat, 02 June 2007 04:42 Go to previous messageGo to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
Crates.cpp, look for "void KAK_Backpack_Object::Created(GameObject *obj) {"

You need need to edit the "pow's" that are granted, when you have finished hit "save", then go "build", then "build solution" (or just hit f7).



Re: More Questions [message #262688 is a reply to message #262182] Sat, 02 June 2007 15:49 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
cool thanks
Re: More Questions [message #263200 is a reply to message #262182] Tue, 05 June 2007 00:13 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
on aow source files idk wheres the c++ is where u drop stuff when you die
Re: More Questions [message #263202 is a reply to message #263200] Tue, 05 June 2007 00:23 Go to previous messageGo to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
joe937465 wrote on Tue, 05 June 2007 03:13

on aow source files idk wheres the c++ is where u drop stuff when you die


For the AOW source code, search for "void M00_GrantPowerup_Created::Destroyed(GameObject *obj)
{"



Re: More Questions [message #263207 is a reply to message #262182] Tue, 05 June 2007 00:36 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
in which c++ file?
Re: More Questions [message #263208 is a reply to message #263207] Tue, 05 June 2007 00:36 Go to previous messageGo to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
joe937465 wrote on Tue, 05 June 2007 03:36

in which c++ file?


aow.cpp



Re: More Questions [message #263212 is a reply to message #262182] Tue, 05 June 2007 01:26 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
1)ok now when i edit them where do i put them?

2)also in ctf im add new chars like umm petorva right but shes not in the aow.c thing so i cant choose what she drops how do i set that up ? in the source file?


3)and where are the vechs in c++ to make soem stealth?
Re: More Questions [message #263213 is a reply to message #263212] Tue, 05 June 2007 01:43 Go to previous messageGo to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
joe937465 wrote on Tue, 05 June 2007 04:26

1)ok now when i edit them where do i put them?




OK, this code here exists in the aow .cpp

		if (strstr(Commands->Get_Preset_Name(obj),"CnC_GDI_MiniGunner_0"))
		{
			BackpackScript = Commands->Create_Object("POW_AutoRifle_Player",DeathPlace);
		}


It basically means (along with it's preceeding code) that if a player dies, and they are a GDI normal rifle soldier, then they drop a "pow_autorifle_player", which is a normal GDI rifle gun.
If you edit the pow_autorifle_player to some other pow weapon, then it will drop that weapon instead when a gdi soldier is killed.
When you have finished making your changes, then save what you have done, then press "f7" to build your solution. This will create a new scripts.dll in the directory where your solution is. This file is the file you need to replace the old scripts.dll file with in your servers FDS directory.

joe937465 wrote on Tue, 05 June 2007 04:26


2)also in ctf im add new chars like umm petorva right but shes not in the aow.c thing so i cant choose what she drops how do i set that up ? in the source file?



Well if you are replacing the petrova character with another one, I would just look for the character preset in the "void KAK_Backpack_Object::Created(GameObject *obj) {" that you have replaced the petrova with, and replace it with the petrova preset name, then define what weapon she drops when killed.


joe937465 wrote on Tue, 05 June 2007 04:26


3)and where are the vechs in c++ to make soem stealth?


You can do that, however people without the scripts.dll from johnwill on there client will still be able to see the vehichle as if it wasn't stealthed. So they would have an advantage over people who do have the scripts.dll.
This will cause players who have got off there ass and downloaded it to have a disadvantge, not encouraging...



Re: More Questions [message #263216 is a reply to message #262182] Tue, 05 June 2007 01:49 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
opps i edited about 4 c++ fiels and clicked save umm how do i do that thing now since i already closed them?
"When you have finished making your changes, then save what you have done, then press "f7" to build your solution. This will create a new scripts.dll in the directory where your solution is. This file is the file you need to replace the old scripts.dll file with in your servers FDS directory."

i have the source files in a different folder atm to edit them should i place them back in the fds open the zip edit them thur the zip save click f7 then save again?

if u can explain the process?



this is what i did
1)copy the ssaow_source.zip to a different location
2) extracted them
3)edited them
4) put them back in the zip with same name
5)put them in the fds folder
6) went igngame to see if it works for people but nothing..

[Updated on: Tue, 05 June 2007 01:55]

Report message to a moderator

Re: More Questions [message #263220 is a reply to message #263216] Tue, 05 June 2007 02:15 Go to previous messageGo to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
Woah...

Ok, .zip files are used to place several files into one location and to compress the file size.
If you have source files that are 30 mb, and want people to be able to download and use them, you can zip them up and the file size becomes smaller. It might just be 10mb after zipping. This is why they are zipped.

The renegadeFDS cannot read your scripts.dll file from a .zip.

I am also going out on a limb and guessing you are just opening the aow.cpp file with notepad or something, making the changes, then closing it down?

You need to open up the solution "scripts.sln" with visualstudios.net2003, then open the aow.cpp file from within visualstudio and make the changes. Then you can go to build/build solution.

It is more like this:

1) download ssaow
2) extract the source code into a folder somewhere on your pc (desktop maybe?)
3) Open scripts.sln with visualstudio.net2003
4) make changes
5) save
6) link and compile (build solution)
7) Copy the scripts.dll file it just made in the source folder you copied to desktop into your renegade FDS directory.

(Also, I am assuming you have put bhs.dll and other files into your servers directory, and not just put the entire folder called "server files" in there?)



Re: More Questions [message #263228 is a reply to message #262182] Tue, 05 June 2007 03:15 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
ok ill try and no i was not using notepad i was using c++ software the guy gave me the lnik to


so i download a software called visualstudio.net 2003

or visual studio 2005?

the one i using now is Visual C++ 2005 Express edition



"(Also, I am assuming you have put bhs.dll and other files into your servers directory, and not just put the entire folder called "server files" in there?)"

huh? i got the bhs.ddl fiel in there

i just download the brenbot pack that came with corepatch1 and 2 along with some plugs ins like rank i choose cp2 instead of scrips 2.9.2 so ya

[Updated on: Tue, 05 June 2007 03:39]

Report message to a moderator

Re: More Questions [message #263235 is a reply to message #262182] Tue, 05 June 2007 04:01 Go to previous messageGo to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
scripts 2.9.2 (actually that is out dated, you want 3.2.3) should only be used on your client install of renegade. It can be used for the server, but SSAOW is what you actually want in your servers fds directory.

It might be confusing for you, because they are both called scripts.dll. But the scripts.dll from the ssaow you downloaded goes into your fds directory, the 2.9.2 goes on your client.

SSAOW 1.5 opens with visualstudio.net2003, this is what you need to use.



Re: More Questions [message #263243 is a reply to message #262182] Tue, 05 June 2007 04:41 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
well i use 2.9 because not everyone has the new scripts and one thing i learned form a server is because the user did not have the update scripts it could not see or do what was added or extra on the scripts for example stealth suits or other stuff because they did not have them and im change a lot of things


all i want is to run the corepatch scripts (since most people with have them) and edit and save my edited source files and use them in the serv Smile so pretty much ill follow what you typed above but idk where to download that software Sad


and where can i download the ssaow source files i think i messaed mine up Sad


and when i do what u did above can i do that to edit the crate.c++ and the aow.c++ and ect?

[Updated on: Tue, 05 June 2007 04:42]

Report message to a moderator

Re: More Questions [message #263250 is a reply to message #263243] Tue, 05 June 2007 05:10 Go to previous messageGo to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
OK, you are still a little confused...

You as a client use scripts.dll (3.2.3 is the newest for clients), the server uses the SSAOW scripts.dll.

So your server should use the scripts.dll of SSAOW, not 3.2.3 or 2.9. They are for clients (yes they can be used for the server, but SSAOW is much better).

I understand what you are saying, if you use 2.9.2 and most people have that, then there is a good chance that they have the scripts so everything will work nicely. However SSAOW is what makes stuff drop from people when they die. It is what stops the bandwidth exploit, it causes the vehichle wreckages and all the crates too. So yeah.. Use the SSAOW scripts.dll. This is important.

As for downloading the software.. VisualStudio.net2003 isn't free. It costs allot of money to buy, infact it costs thousands.
You can't download it legally from a site.

You can download the latest SSAOW release here:
http://forums.black-cell.net/index.php?topic=6005.0

Using the same method you can also edit the crates.cpp file and any other .h/.cpp file in the source code of SSAOW.




Re: More Questions [message #263380 is a reply to message #262182] Tue, 05 June 2007 13:25 Go to previous messageGo to previous message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
thats the one i got Very Happy so i just edit those source files and replace those scripts.ddl into my folder after im done editing and when we go ingame it will work?
Previous Topic: Vehicle help
Next Topic: I'm kind of torn here....
Goto Forum:
  


Current Time: Tue Jun 11 12:36:19 MST 2024

Total time taken to generate the page: 0.01769 seconds