:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::
Do you want to advertise at Project Perfect Mod. Find out how to do it HERE.

The time now is Sat Aug 17, 2019 12:43 pm
All times are UTC + 0
 Forum index » Modding Central » Game Development and Programming Discussion
Testing on CNCNet5.dll
Moderators: Global Moderators
Post new topic   Reply to topic Page 1 of 1 [7 Posts] View previous topic :: View next topic
Author Message
cxtian39
Commander


Joined: 11 Feb 2016
Location: United States

PostPosted: Wed Jan 09, 2019 8:14 pm    Post subject:  Testing on CNCNet5.dll
Subject description: Oh, so we have a programing disscussion
Reply with quote

I get the file here
E1 Elite wrote:
On fresh YR, install CnCNet client for YR, drop Ares files into game folder
and generic cncnet5.dll from:
https://ppmforums.com/viewtopic.php?p=557384#557384

In ClientDefinitions.ini replace
Code:
GameExecutableNames=gamemd-spawn.exe

with
Code:
GameExecutableNames=Syringe.exe
ExtraCommandLineParams= "gamemd.exe" -spawn -cd -log

Then drop your mod files in the game folder and run the client.
I try to launch the game directly from my own program.
I put my program and CNCNet5.dll under the game folder, prepare spwan.ini and spawnmap.ini, and run it. It runs fine except when I click the game exits.
Code:
#include <iostream>
#include <cstdio>
#include <string>
#include <vector>
#include <fstream>
#include <time.h>
#include <tchar.h>
#include "windows.h"

int CALLBACK WinMain(
   _In_ HINSTANCE hInstance,
   _In_ HINSTANCE hPrevInstance,
   _In_ LPSTR     lpCmdLine,
   _In_ int       nCmdShow
)
{
   STARTUPINFO info = { sizeof(info) };
   PROCESS_INFORMATION processInfo;
   WCHAR cmd[] = L" \"gamemd.exe\" -SPAWN -LOG";
   if (CreateProcess(L"Syringe.exe", cmd, NULL, NULL, TRUE, 0, NULL, NULL, &info, &processInfo))
   {
      WaitForSingleObject(processInfo.hProcess, INFINITE);
      CloseHandle(processInfo.hProcess);
      CloseHandle(processInfo.hThread);
   }
   return 0;
}
I tried running
Syringe "gamemd.exe" -SPAWN -LOG
directly from the command line and still have the same problem.
BTW is it possible to get the source code for cncnet5.dll?

Back to top
View user's profile Send private message Skype Account
E1 Elite
Commander


Joined: 28 May 2013

PostPosted: Thu Jan 10, 2019 6:10 am    Post subject: Reply with quote

Answered here - https://ppmforums.com/viewtopic.php?p=561221#561221

Ask dkeeton for the source, who provided that generic cncnet5.dll.

Back to top
View user's profile Send private message
cxtian39
Commander


Joined: 11 Feb 2016
Location: United States

PostPosted: Thu Jan 10, 2019 6:29 am    Post subject: Reply with quote

E1 Elite wrote:
Answered here - https://ppmforums.com/viewtopic.php?p=561221#561221

Ask dkeeton for the source, who provided that generic cncnet5.dll.
What are Diplomacy flags?
Back to top
View user's profile Send private message Skype Account
E1 Elite
Commander


Joined: 28 May 2013

PostPosted: Thu Jan 10, 2019 6:49 am    Post subject: Reply with quote

Read the full thread, I referred to - https://ppmforums.com/viewtopic.php?p=561239#561239

The flag image next to the country on UI screens modifiable by Ares [Country] -> File.Flag=
http://ares-developers.github.io/Ares-docs/new/sidescountries/uicountry.html

Back to top
View user's profile Send private message
cxtian39
Commander


Joined: 11 Feb 2016
Location: United States

PostPosted: Thu Jan 10, 2019 7:08 am    Post subject: Reply with quote

E1 Elite wrote:
Read the full thread, I referred to - https://ppmforums.com/viewtopic.php?p=561239#561239

The flag image next to the country on UI screens modifiable by Ares [Country] -> File.Flag=
http://ares-developers.github.io/Ares-docs/new/sidescountries/uicountry.html
my bad, didn’t continue reading when seeing someone said problem solved #Tongue
Back to top
View user's profile Send private message Skype Account
cxtian39
Commander


Joined: 11 Feb 2016
Location: United States

PostPosted: Tue Jan 15, 2019 6:16 am    Post subject: Reply with quote

How to start a saved game directly? Same command line? Still use spawn.ini?

Back to top
View user's profile Send private message Skype Account
E1 Elite
Commander


Joined: 28 May 2013

PostPosted: Wed Jan 16, 2019 12:17 pm    Post subject: Reply with quote

Red Ressurection mod has a load game feature that seems to be using spawn.ini for it, but it also has a slightly different cncnet5.dll, so it is possible. Anyway, a saved game can be loaded from within the game also.

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [7 Posts] View previous topic :: View next topic
 Forum index » Modding Central » Game Development and Programming Discussion
Jump to:  
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
Quick Reply
Username:


If you are visually impaired or cannot otherwise answer the challenges below please contact the Administrator for help.


Write only two of the following words separated by a sharp: Brotherhood, unity, peace! 

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

Wildcard SSL Certificates
[ Time: 0.1854s ][ Queries: 11 (0.0559s) ][ Debug on ]