H&D2 Server Manager Source Code

2 years 11 months ago #49 by JonnySniper
Replied by JonnySniper on topic H&D2 Server Manager Source Code
Hey dudes :)

i was off for a while.
if Stern needs help in coding, you can ask me.
A good friend of mine is programer in a Company and he knows delphi much better than me (in case i dont have a clue).

First Question is, why did you compile that with old Delphi 5 instead of using the new version?

Second is, isnt the 255 problem maybe becouse of the byte value that doesnt count higher?

Please Log in or Create an account to join the conversation.

2 years 11 months ago - 2 years 11 months ago #50 by Stern
Replied by Stern on topic H&D2 Server Manager Source Code
1. It doesnt open in new-up to date Delphi.
Try it u see what happens,
Its wise to re-compile it as it is, and then olny fix errors.
This way i know it works.

2. Yes its data type limit.
 

Both buffers are set to BYTE (pointer), in HD2ServerService.pas (server) / Main.pas (client)
but changing them to WORD produced rubbish data.
More changes must be made to make it work...

The one who hesitates is lost !
Attachments:
The following user(s) said Thank You: snowman

Please Log in or Create an account to join the conversation.

2 years 11 months ago #51 by JonnySniper
Replied by JonnySniper on topic H&D2 Server Manager Source Code
i allready opend and compiled it.
in the serveral years some deklarations about Ansichar changed, its just simply chance PChar to Ansichar.
Then the Bytesreaded need to chagne from Cardinal to SIZE_T.

Yes i saw thats in byte, but that it ends with the bit size of 255 must be a small change, just need to find i think.


 
The following user(s) said Thank You: snowman

Please Log in or Create an account to join the conversation.

2 years 10 months ago #52 by Stern
Replied by Stern on topic H&D2 Server Manager Source Code
But can you fix this yourself ?
If it compiles then future fixes can be done with up-to-date Delphi versions.

But i was thinking if to create extended version of ServerLauncher.
It would be only server side program with additional features:
*Restart Console if it closes itself.
*Send messages to Consoles.

Also it will use separate maplist files for each Console.
Maybe this can make it more friendly for non-MS op systems.

 

The one who hesitates is lost !
The following user(s) said Thank You: snowman

Please Log in or Create an account to join the conversation.

2 years 8 months ago - 2 years 8 months ago #53 by Stern
Replied by Stern on topic H&D2 Server Manager Source Code
Here is a clean version of source code of version 2.9.1 (Fixed with Borland Delphi 5.62)

(Who ever want to continue,  there is no point of starting again from original 2.9 version)

https://1drv.ms/u/s!Aj4b71jV4JhLgylsWx4oNKdn93U4?e=9wBwGf

 

The one who hesitates is lost !
The following user(s) said Thank You: snowman

Please Log in or Create an account to join the conversation.

2 years 8 months ago #54 by Maletzki
Replied by Maletzki on topic H&D2 Server Manager Source Code
Does anyone have a working installer for Delphi 5? The one I used didnt even started the installation on Windows 10 (also tried WinXP SP3 compatibility mode)

Playing H&D2 since 2007.

Please Log in or Create an account to join the conversation.

  • Lukasz birthday is in 10 days (41)
Powered by Kunena Forum