Go Back   Novahq.net Forum > Off-Topic > General Chat

General Chat Talk about anything that does not fit into other topics here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-27-2017, 03:52 PM
Kattoor is offline Kattoor
Registered User

Join Date: Mar 2017
Posts: 8

New here + question about NovaLogic's networking

Hello guys!

After not having played Black Hawk Down for so many years, I picked it up again on the GOG sales earlier this week

I was wondering whether there was any documentation about the way NovaLogic implemented their networking / network encryption in it's games? More specifically Black Hawk Down as I want to try and implement a custom server myself.

Thanks and see all of you ingame
Kattoor
Reply With Quote
  #2  
Old 03-29-2017, 09:21 PM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,527

I don't think they've ever released their encryption? I am wondering what you mean by "Custom Server"? Can you elaborate on that a little?
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote
  #3  
Old 03-30-2017, 06:38 AM
Kattoor is offline Kattoor
Registered User

Join Date: Mar 2017
Posts: 8

Quote:
Originally Posted by Scott View Post
I am wondering what you mean by "Custom Server"? Can you elaborate on that a little?
If I understood the communication happening between the clients and server, I would be able to actually program my own server with custom logic.
The amount of custom logic would depend on what actually happens server-sided vs client-sided in the game.

However, this is probably an unattainable goal for me as even if I knew more about the encrypted communication, I would have to Google tons about 3d-mathematics.

I'm now working on an application that colors the kill-log (top-right of your screen in BHD) using the different teamcolors. This to see more easily who shot who
Reply With Quote
  #4  
Old 03-30-2017, 08:48 AM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,527

Quote:
Originally Posted by Kattoor View Post
I'm now working on an application that colors the kill-log (top-right of your screen in BHD) using the different teamcolors. This to see more easily who shot who
That's a good idea, keep us posted
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote
  #5  
Old 03-30-2017, 03:21 PM
Kattoor is offline Kattoor
Registered User

Join Date: Mar 2017
Posts: 8

Quote:
Originally Posted by Scott View Post
That's a good idea, keep us posted
Progress over the past two days:
https://www.youtube.com/watch?v=9G2W8DVxkF8
Reply With Quote
  #6  
Old 03-30-2017, 04:07 PM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,527

Nice work. I always wanted to do something like this in DF1 and DF2 because I never know when I've killed someone, all the messages look the same.

Are you just changing a couple bytes at the end of the message string to the color the player is on?

Looks like you have a good start
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote
  #7  
Old 03-30-2017, 07:18 PM
--BulletMagnet-- is offline --BulletMagnet--
--BulletMagnet--'s Avatar
DF2 Forever

Join Date: Jun 2005
Location: USA
Posts: 703

Send a message via MSN to --BulletMagnet--
That's a really cool idea, Kattoor.

Great to see others still programming for these games.
Reply With Quote
  #8  
Old 03-30-2017, 07:22 PM
--BulletMagnet-- is offline --BulletMagnet--
--BulletMagnet--'s Avatar
DF2 Forever

Join Date: Jun 2005
Location: USA
Posts: 703

Send a message via MSN to --BulletMagnet--
Quote:
Originally Posted by Scott View Post
Nice work. I always wanted to do something like this in DF1 and DF2 because I never know when I've killed someone, all the messages look the same.
Yeah, that would be cool. New project idea?
Reply With Quote
  #9  
Old 03-31-2017, 04:35 AM
Kattoor is offline Kattoor
Registered User

Join Date: Mar 2017
Posts: 8

Quote:
Originally Posted by Scott View Post
Are you just changing a couple bytes at the end of the message string to the color the player is on?
Indeed!
I start of with collecting the player names and their corresponding team color.
The last three kill-messages are read every interval.
Of these messages, I isolate the killer and then it's just a matter of changing some bytes at the end of the messages.

Took me some time to get things right as I'm not really used to programming this low-level
Reply With Quote
  #10  
Old 04-04-2017, 02:53 AM
stompem is offline stompem
stompem's Avatar
Die Hard

Join Date: Aug 2008
Location: Australia
Posts: 4,789

Quote:
Originally Posted by Kattoor View Post
If I understood the communication happening between the clients and server, I would be able to actually program my own server with custom logic.
The amount of custom logic would depend on what actually happens server-sided vs client-sided in the game.

However, this is probably an unattainable goal for me as even if I knew more about the encrypted communication, I would have to Google tons about 3d-mathematics.

I'm now working on an application that colors the kill-log (top-right of your screen in BHD) using the different teamcolors. This to see more easily who shot who
You can gain extra of control over the server by creating server.wac and placing it in the root folder.

Team instructions already exist as created by NL but they can be tweaked and more can be added, this may assist you in what you're trying achieve here.
__________________

In It For The Game!
Reply With Quote
  #11  
Old 04-04-2017, 03:14 AM
stompem is offline stompem
stompem's Avatar
Die Hard

Join Date: Aug 2008
Location: Australia
Posts: 4,789

Here's a slightly modified team script and I think you can see that you can probably manipulate the script to show individual stats linked to colours as well.

ploop
if onptick 10 then
ptext "<cf8932>Server message here<-co>"
end

if piskills(1) and never then
if pisteam(1) then
text "First Kill - <cfc0000FF>Blue Team<-co>"
else
text "First Kill - <cfcFF0000>Red Team<-co>"
end
ptext "Congrats on the first kill of the game!'
psetvar(2)
end

if piskills(1) and not pisvar(2) then
psetvar(2)
ptext "Congrats on your first kill!"
if pisteam(1) then
ptext "Take the <cfc0000FF>Blue Team<-co> to Victory!"
else
ptext "Take the <cfcFF0000>Red Team<-co> to victory!"
end
end
end
__________________

In It For The Game!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 07:37 PM.




Powered by vBulletin®