Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Thu Oct 03, 2024 10:16 pm
All times are UTC + 0
Testing on CNCNet5.dll
Moderators: Global Moderators
Post new topic   Reply to topic Page 1 of 1 [7 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
cxtian39
Commander


Joined: 11 Feb 2016

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  Mark this post and the followings unread

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
General


Joined: 28 May 2013

PostPosted: Thu Jan 10, 2019 6:10 am    Post subject: Reply with quote  Mark this post and the followings unread


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


Joined: 11 Feb 2016

PostPosted: Thu Jan 10, 2019 6:29 am    Post subject: Reply with quote  Mark this post and the followings unread


_________________

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


Joined: 28 May 2013

PostPosted: Thu Jan 10, 2019 6:49 am    Post subject: Reply with quote  Mark this post and the followings unread


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


Joined: 11 Feb 2016

PostPosted: Thu Jan 10, 2019 7:08 am    Post subject: Reply with quote  Mark this post and the followings unread


_________________

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


Joined: 11 Feb 2016

PostPosted: Tue Jan 15, 2019 6:16 am    Post subject: Reply with quote  Mark this post and the followings unread

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
General


Joined: 28 May 2013

PostPosted: Wed Jan 16, 2019 12:17 pm    Post subject: Reply with quote  Mark this post and the followings unread

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] Mark the topic unread ::  View previous topic :: View next topic
 
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

[ Time: 0.2089s ][ Queries: 11 (0.0098s) ][ Debug on ]