Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Other Products » scripts-2.8 source wont compile
scripts-2.8 source wont compile [message #209428] Sun, 23 July 2006 16:47 Go to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
right, i have got microsoft visual c++ express edition 2006.
i opened the sln file from the scripts-2.8 source folder and converted it. when i asked it to compile it checked all the files and they were ok. when it tryed to link them it got this error. what can i do to ix it.

sorry about piture size.
  • Attachment: error.png
    (Size: 2.25MB, Downloaded 180 times)
Re: scripts-2.8 source wont compile [message #209430 is a reply to message #209428] Sun, 23 July 2006 17:02 Go to previous messageGo to next message
Cat998
Messages: 1081
Registered: January 2004
Location: Austria, Vienna
Karma: 0
General (1 Star)
Moderator/Captain

You maybe specified a wrong path your Microsoft platform SDK library directory.

http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/

However, here is the file you need:

http://ice-gfx.com/WS2_32.Lib


When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter then "Yes"

Programming is like sex: one mistake and you have to support it for the rest of your life

Want the best answers? Ask the best questions!

"So long, and thanks for all the fish."
Re: scripts-2.8 source wont compile [message #209431 is a reply to message #209428] Sun, 23 July 2006 17:17 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)
That lib worked, Thanks. but i got onouther error:

dllmain.obj : error LNK2019: unresolved external symbol __imp__MessageBoxA@16 referenced in function "int (__stdcall*__cdecl GetProcAddressCheck(struct HINSTANCE__ *,char const *))(void)" (?GetProcAddressCheck@@YAP6GHXZPAUHINSTANCE__@@PBD>@Z)


i think this mite be the last one (i hope).
Re: scripts-2.8 source wont compile [message #209443 is a reply to message #209428] Sun, 23 July 2006 18:23 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)
right, after hours of trying i edited the code and removed the function call MessageBox after this it worked.


now that i can get it to compile. how do i call the functions from my bot? the only way i think you can do it is to create a pre-compiled header and include it in my bot. is this how you would do it? if not please tell me how.

thanks cat998 for all the help on script-2.8
Re: scripts-2.8 source wont compile [message #209743 is a reply to message #209428] Tue, 25 July 2006 17:12 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

You cant use scripts.dll functions from an external bot.


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: scripts-2.8 source wont compile [message #209820 is a reply to message #209428] Wed, 26 July 2006 07:28 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)
how do i use them? brennot does, or does that have its own libraries. why can't i incorperate my bot into scripts.dll and call it in "dllmain()"
Re: scripts-2.8 source wont compile [message #209821 is a reply to message #209428] Wed, 26 July 2006 07:40 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
BRenBot calls scripts.dll through the renegadeFDS using renrem afaik, it does not directly call them itself.

http://steamsignature.com/card/1/76561197975867233.png
Re: scripts-2.8 source wont compile [message #209825 is a reply to message #209821] Wed, 26 July 2006 08:15 Go to previous messageGo to next message
Cat998
Messages: 1081
Registered: January 2004
Location: Austria, Vienna
Karma: 0
General (1 Star)
Moderator/Captain

danpaul88 wrote on Wed, 26 July 2006 16:40

BRenBot calls scripts.dll through the renegadeFDS using renrem afaik, it does not directly call them itself.


nope, it doesn't use it in any way


When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter then "Yes"

Programming is like sex: one mistake and you have to support it for the rest of your life

Want the best answers? Ask the best questions!

"So long, and thanks for all the fish."
Re: scripts-2.8 source wont compile [message #209827 is a reply to message #209428] Wed, 26 July 2006 08:25 Go to previous messageGo to next message
PackHunter is currently offline  PackHunter
Messages: 487
Registered: November 2004
Location: Holland
Karma: 0
Commander
SSAOW adds extra commands to the fds which BR can call through renrem.
Re: scripts-2.8 source wont compile [message #209836 is a reply to message #209827] Wed, 26 July 2006 09:29 Go to previous messageGo to next message
Cat998
Messages: 1081
Registered: January 2004
Location: Austria, Vienna
Karma: 0
General (1 Star)
Moderator/Captain

PackHunter wrote on Wed, 26 July 2006 17:25

SSAOW adds extra commands to the fds which BR can call through renrem.


SSAOW doesn't add any commands to the FDS,

what you mean is bhs.dll.


When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter then "Yes"

Programming is like sex: one mistake and you have to support it for the rest of your life

Want the best answers? Ask the best questions!

"So long, and thanks for all the fish."

[Updated on: Wed, 26 July 2006 09:29]

Report message to a moderator

Re: scripts-2.8 source wont compile [message #209845 is a reply to message #209428] Wed, 26 July 2006 10:38 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
nvm..

http://steamsignature.com/card/1/76561197975867233.png

[Updated on: Wed, 26 July 2006 10:39]

Report message to a moderator

Re: scripts-2.8 source wont compile [message #209936 is a reply to message #209836] Wed, 26 July 2006 22:26 Go to previous messageGo to next message
PackHunter is currently offline  PackHunter
Messages: 487
Registered: November 2004
Location: Holland
Karma: 0
Commander
Cat998 wrote on Wed, 26 July 2006 12:29

PackHunter wrote on Wed, 26 July 2006 17:25

SSAOW adds extra commands to the fds which BR can call through renrem.


SSAOW doesn't add any commands to the FDS,

what you mean is bhs.dll.


Which comes with scripts.dll and SSAOW.
Re: scripts-2.8 source wont compile [message #210067 is a reply to message #209428] Thu, 27 July 2006 14:28 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)
how does brenbot know how many players there are in a server, and how does it know if a player even exists? there must be some library that it uses. i found that not many commands in the FDS console are usefull and do not retrun any values to my bot. how does brenbot get a player id? there must be a library that provides loads of suff that is perfect.
Re: scripts-2.8 source wont compile [message #210068 is a reply to message #209428] Thu, 27 July 2006 14:32 Go to previous messageGo to next message
PackHunter is currently offline  PackHunter
Messages: 487
Registered: November 2004
Location: Holland
Karma: 0
Commander
magic Listen
Re: scripts-2.8 source wont compile [message #210078 is a reply to message #210068] Thu, 27 July 2006 15:18 Go to previous messageGo to next message
Cat998
Messages: 1081
Registered: January 2004
Location: Austria, Vienna
Karma: 0
General (1 Star)
Moderator/Captain

PackHunter wrote on Thu, 27 July 2006 23:32

magic Listen


Brenbot has a native interface for Renrem, that means

it does not need any dll to communicate with the FDS (it does

it with a direct udp connection). You can get the player IDs

with player_info, or you send player_info to the FDS and read

the response from the logfile....

A better way would be RLmon (included in scripts 2.9), you can

read the console output with it (see bhs.txt).


When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter then "Yes"

Programming is like sex: one mistake and you have to support it for the rest of your life

Want the best answers? Ask the best questions!

"So long, and thanks for all the fish."

[Updated on: Thu, 27 July 2006 15:22]

Report message to a moderator

Re: scripts-2.8 source wont compile [message #210084 is a reply to message #209428] Thu, 27 July 2006 15:47 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)
RLmon? but thanks! i have been baffeled at this problem. so far i have only been able to get my bot to read from the user. i should be more interesting now.

i will have a look into RLmon. i will also see if i can create a UDP connection to FDS to see what happens.

Thanks for all the help.

BTW: did anyone try my bot to see what it is like?
Re: scripts-2.8 source wont compile [message #210243 is a reply to message #209428] Fri, 28 July 2006 19:18 Go to previous message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
i have looked at rlmon in bhs.txt and how to use it. but what i have noticed is that if i just recompile scripts.dll without editing. renegadefds doent include it at all. and you only have a small amount of commands. this is very anoying, i am using version 8.0 of microsoft visual c++ express edition. why wont it work? i have no errors when it compiles at all, not even warnings.

i hope someone can help.
Previous Topic: scripts.dll 2.9 is out
Next Topic: Quick Question on SSAOW + bhs.dll
Goto Forum:
  


Current Time: Thu Nov 21 14:14:54 MST 2024

Total time taken to generate the page: 0.01065 seconds