Renegade Public Forums
C&C: Renegade --> Dying since 2003â„¢, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » scripts.dll > Printing Messages
scripts.dll > Printing Messages [message #61984] Wed, 14 January 2004 16:16 Go to next message
TimeFX is currently offline  TimeFX
Messages: 25
Registered: January 2004
Location: Germany
Karma: 0
Recruit

Hi again³ Razz


Is there any way to print messages to the message box (multiplayer)?



Mfg,
TimeFX

[Updated on: Thu, 15 January 2004 04:14]

Report message to a moderator

scripts.dll > Printing Messages [message #61995] Wed, 14 January 2004 18:22 Go to previous messageGo to next message
Deafwasp is currently offline  Deafwasp
Messages: 555
Registered: February 2003
Karma: 0
Colonel
You mean print?

And do you mean print them out, like from your printer?
scripts.dll > Printing Messages [message #62003] Wed, 14 January 2004 19:16 Go to previous messageGo to next message
Doitle is currently offline  Doitle
Messages: 1723
Registered: February 2003
Location: Chicago, IL
Karma: 0
General (1 Star)
Moderator/Captain

I think he means display a string such as

"Nod Obelisk destroyed"

I really don't know mr time... I'm not well versed in .dll wizardry.


http://www.n00bstories.com/image.fetch.php?id=1285726594
scripts.dll > Printing Messages [message #62011] Wed, 14 January 2004 22:45 Go to previous messageGo to next message
Deafwasp is currently offline  Deafwasp
Messages: 555
Registered: February 2003
Karma: 0
Colonel
If that is the case, I am sure that's possible.
scripts.dll > Printing Messages [message #62020] Thu, 15 January 2004 04:15 Go to previous messageGo to next message
TimeFX is currently offline  TimeFX
Messages: 25
Registered: January 2004
Location: Germany
Karma: 0
Recruit

I tried Commands->Display_Text/Display_Int and Commands->Play_Building_Announcement - both not working Sad
scripts.dll > Printing Messages [message #62066] Thu, 15 January 2004 12:55 Go to previous messageGo to next message
Dante
Messages: 1039
Registered: February 2003
Karma: 0
General (1 Star)
Commands->Display_Float(0,"message\n");

scripts.dll > Printing Messages [message #62175] Fri, 16 January 2004 03:43 Go to previous messageGo to next message
TimeFX is currently offline  TimeFX
Messages: 25
Registered: January 2004
Location: Germany
Karma: 0
Recruit

That's almost the same like Display_Int - and not working (I said multiplayer Wink)

I have another bad idea of printing a string but I have to test it Wink
scripts.dll > Printing Messages [message #62216] Fri, 16 January 2004 10:08 Go to previous messageGo to next message
Dante
Messages: 1039
Registered: February 2003
Karma: 0
General (1 Star)
char temp;
temp = "howdy";
printf("%s",temp);


scripts.dll > Printing Messages [message #62229] Fri, 16 January 2004 12:40 Go to previous messageGo to next message
TimeFX is currently offline  TimeFX
Messages: 25
Registered: January 2004
Location: Germany
Karma: 0
Recruit

...
...


Printing strings with a building controller works fine Smile
Now I can add damage/destroyed reportings for turrets etc too Smile


@Dante: That would result in an error Wink
scripts.dll > Printing Messages [message #62232] Fri, 16 January 2004 13:07 Go to previous messageGo to next message
Aircraftkiller is currently offline  Aircraftkiller
Messages: 8213
Registered: February 2003
Karma: 0
General (5 Stars)
Turrets are vehicles, not structures.
scripts.dll > Printing Messages [message #62233] Fri, 16 January 2004 13:13 Go to previous messageGo to next message
[REHT]Spirit is currently offline  [REHT]Spirit
Messages: 277
Registered: April 2003
Karma: 0
Recruit

He's destroying and/or damaging building controllers to cause warnings and stuff to apear for turrets.
scripts.dll > Printing Messages [message #62236] Fri, 16 January 2004 13:34 Go to previous messageGo to next message
General Havoc is currently offline  General Havoc
Messages: 1564
Registered: February 2003
Location: Birmingham, England, Unit...
Karma: 0
General (1 Star)
Along the lines of what I wanted a script to do. The JFW_Custom_Damage_Object doesn't work properly. Where you wanted the messages, I wanted the sounds. Does this script cause the sounds to trigger too?

Hopefully it will work and you can get in the next dll release. Then I can demo the method of making CTF mode working in all it's glory.


Visit my website at http://renhelp.laeubi-soft.de powered by laeubi.de
"SHUT UP AND MOD" - Dante
"ACK is the Simon Cowell of modding" - Ultron10
Scripts.dll Debugger, Map Scripter and Tutorial writer

Computer Science Bsc
Aston University in Birmingham, UK
scripts.dll > Printing Messages [message #62254] Fri, 16 January 2004 15:14 Go to previous messageGo to next message
TimeFX is currently offline  TimeFX
Messages: 25
Registered: January 2004
Location: Germany
Karma: 0
Recruit

The script uses strings from strings.tdb - and you can add sounds to scripts - so I think it will work.
I'll test the turret script now - wasn't able to test it because my c&c_field.lvl is damaged and causes CCR crash ... damn Very Happy


EDIT:
General Havoc:
Which script you want exactly - maybe I can help you Smile
scripts.dll > Printing Messages [message #62262] Fri, 16 January 2004 15:56 Go to previous messageGo to next message
General Havoc is currently offline  General Havoc
Messages: 1564
Registered: February 2003
Location: Birmingham, England, Unit...
Karma: 0
General (1 Star)
Well originally Jonathan Wilson wrote "JFW_Custom_Damage_Object" that was meant to damage a building controller when a custom was sent to the object containing the script thus playing the buildings damage EVA announcement and showing the text in the chat box.

However the script didn't work - just killed the building no matter what the damage paramter was set to and not even the building destroyed message came up.

Basically I need a script that uses a building controller damage sounds when a custom is sent to the script. Much like your message one but with sounds.

The CTF stuff is not relevent as it involves other scripts to work with this one.


Visit my website at http://renhelp.laeubi-soft.de powered by laeubi.de
"SHUT UP AND MOD" - Dante
"ACK is the Simon Cowell of modding" - Ultron10
Scripts.dll Debugger, Map Scripter and Tutorial writer

Computer Science Bsc
Aston University in Birmingham, UK
scripts.dll > Printing Messages [message #62266] Fri, 16 January 2004 16:05 Go to previous messageGo to next message
TimeFX is currently offline  TimeFX
Messages: 25
Registered: January 2004
Location: Germany
Karma: 0
Recruit

That's what I wrote - TFX_Display_String_Building_Announcement´:)
When I finished it (I have to do some last tests) I can give you the dll Smile

It sets building health to 1 and then destroys it - each time the script is used
scripts.dll > Printing Messages [message #62269] Fri, 16 January 2004 16:09 Go to previous messageGo to next message
General Havoc is currently offline  General Havoc
Messages: 1564
Registered: February 2003
Location: Birmingham, England, Unit...
Karma: 0
General (1 Star)
Yeah that would be great. Make sure you send it to JW too so he can include it with the 1.4 release.

Visit my website at http://renhelp.laeubi-soft.de powered by laeubi.de
"SHUT UP AND MOD" - Dante
"ACK is the Simon Cowell of modding" - Ultron10
Scripts.dll Debugger, Map Scripter and Tutorial writer

Computer Science Bsc
Aston University in Birmingham, UK
scripts.dll > Printing Messages [message #62273] Fri, 16 January 2004 16:23 Go to previous messageGo to next message
TimeFX is currently offline  TimeFX
Messages: 25
Registered: January 2004
Location: Germany
Karma: 0
Recruit

Yes I'll send him the code when I finished all the senseless stuff Smile
(Stealth_When_Poked / Wind_When_Entered etc *fg*) ^^
scripts.dll > Printing Messages [message #62299] Fri, 16 January 2004 18:10 Go to previous messageGo to next message
TimeFX is currently offline  TimeFX
Messages: 25
Registered: January 2004
Location: Germany
Karma: 0
Recruit

Damn I still have problems when using building controller: When all buildings were destroyed the team don't win Sad

I have no idea how to fix it Sad
scripts.dll > Printing Messages [message #62307] Fri, 16 January 2004 20:05 Go to previous messageGo to next message
[REHT]Spirit is currently offline  [REHT]Spirit
Messages: 277
Registered: April 2003
Karma: 0
Recruit

You need to destroy the buildings used for announcements when the other buildings are destroyed.
scripts.dll > Printing Messages [message #62354] Sat, 17 January 2004 08:24 Go to previous messageGo to next message
TimeFX is currently offline  TimeFX
Messages: 25
Registered: January 2004
Location: Germany
Karma: 0
Recruit

lol
a) the custom string will be printed then
b) That's not so easy >.<


Any other idea? Sad
scripts.dll > Printing Messages [message #62361] Sat, 17 January 2004 09:18 Go to previous messageGo to next message
General Havoc is currently offline  General Havoc
Messages: 1564
Registered: February 2003
Location: Birmingham, England, Unit...
Karma: 0
General (1 Star)
What about damging the building controller? Can't you set it to damage a building controller by something like 1 and set the health of the building to someting like "9999999" - then kill it with a script when the game is over (CTF + Team DM mode skill the controller when the game ends) as for C&C mode, you need to kill it some other way.

Visit my website at http://renhelp.laeubi-soft.de powered by laeubi.de
"SHUT UP AND MOD" - Dante
"ACK is the Simon Cowell of modding" - Ultron10
Scripts.dll Debugger, Map Scripter and Tutorial writer

Computer Science Bsc
Aston University in Birmingham, UK
scripts.dll > Printing Messages [message #62364] Sat, 17 January 2004 10:29 Go to previous messageGo to next message
TimeFX is currently offline  TimeFX
Messages: 25
Registered: January 2004
Location: Germany
Karma: 0
Recruit

In C&C mode there is no other way.
And if you only want a sound you don't need a building controller...
scripts.dll > Printing Messages [message #62456] Sun, 18 January 2004 04:55 Go to previous message
General Havoc is currently offline  General Havoc
Messages: 1564
Registered: February 2003
Location: Birmingham, England, Unit...
Karma: 0
General (1 Star)
The building controller is used otherwise you get the server side bug where only the host can hear sounds. Building controllers transmit globally via the strings.tdb.

For C&C mode, another script could be wrote, so when all of a teams buildings are destroyed, a script will destroy the last one. IE using death send custom on the teams buildings and the new script triggers when it has received X amount of customs or something.


Visit my website at http://renhelp.laeubi-soft.de powered by laeubi.de
"SHUT UP AND MOD" - Dante
"ACK is the Simon Cowell of modding" - Ultron10
Scripts.dll Debugger, Map Scripter and Tutorial writer

Computer Science Bsc
Aston University in Birmingham, UK
Previous Topic: server side paratropping mod from orca/transport.
Next Topic: scripts.dll stuff
Goto Forum:
  


Current Time: Tue May 14 18:10:50 MST 2024

Total time taken to generate the page: 0.01033 seconds