Having problem in making NPC talk, Help!!

04/10/2011 17:08 BlackCitadel#1
Hello,
Anyone tell me if I am doing anything wrong...

Here I will tell you what I did step by step:-

1- I downloaded this client and exctracted it as you see in the picture, tell me if this client is crap and having problems in modifying changes into private server.
[Only registered and activated users can see links. Click Here To Register...]

2- I downloaded these two files (OldCODB - rikardo updated) and moved them to (C:)
[Only registered and activated users can see links. Click Here To Register...]

3- I installed appserv-win32-2.5.8 and Hamachi.
[Only registered and activated users can see links. Click Here To Register...]

4- I opened up the Config file located in the OldCODB folder and made these changes as you see I typed the Hamachi IP, I typed in the user and password that I used for appserv while I was installing it.
[Only registered and activated users can see links. Click Here To Register...]

5- I opened up Server.dat file located in the client folder and made these changes: The ID is the Hamachi ID and made a name for my server.
[Only registered and activated users can see links. Click Here To Register...]

6- And to add the NPC I opened up the NPCDialog.cs file located in the rikardo updated folder and entered the code through the C# as it was explained in an arabic forums as an example for adding a NPC, Note that what I add is #region BollaSafwat, after that I clicked the (close x) button at the top right of the C# to exit the program, it told me you want to save the changes to NPCDialog.cs I clicked Yes.
[Only registered and activated users can see links. Click Here To Register...]

7- I opened up the NPCs.txt file located in the OldCoDB folder and at the end I added 112245 1230 2 0 1002 439 387 as in the picture.
[Only registered and activated users can see links. Click Here To Register...]

8- I opened up the npc file located in the client folder in the ini folder and at the end I added a new NPC as in the picture.
[Only registered and activated users can see links. Click Here To Register...]

9- I opened up the NewestCOServer located in the rikardo updated folder in Bin>Release folder, I also tried the depug one.
[Only registered and activated users can see links. Click Here To Register...]

10- I doubled-click on the Conquer.exe located in the client folder to launch the server, but then the NPC still says: I still don't say anything useful, my ID is 112245
[Only registered and activated users can see links. Click Here To Register...]

What wrong Am I doing???!!!
04/10/2011 17:12 F i n c h i#2
You gotta press F5 to debug when you are modifying something in C#.
Make sure you don't have errors while debugging,cause it'll not work.

Press thanks if I helped!
04/10/2011 17:51 BlackCitadel#3
That's why I made this topic explaining my problems in details, look at this picture, but when I open up the NPCDialog.cs with C# 2010 Express, after adding any code, I can't press Debug button, and when I press F5 nothing happens, what the hell is happening??!
Debug is not available (The button is not in green color, it's in grey color !!).
[Only registered and activated users can see links. Click Here To Register...]
04/10/2011 18:09 F i n c h i#4
You have to run the whole source,not just the NPCDialog.cs!

Go in X:\OldCODB\rikardo updated and search for NewestCOServer.sln and run it.

Press thanks if I helped!
04/10/2011 18:30 BlackCitadel#5
Thanks, you helped me at last.
Now, how can I make the game ready for use and let others register??
And what if I added something new to the server, how can I make a new patch??
04/10/2011 18:46 F i n c h i#6
Quote:
Thanks, you helped me at last.
Np.

Quote:
Now, how can I make the game ready for use and let others register??
Create a register page.

Quote:
And what if I added something new to the server, how can I make a new patch??
Use winrar and upload the patch on [Only registered and activated users can see links. Click Here To Register...]
04/10/2011 19:05 BlackCitadel#7
But how can I make the patch?
04/10/2011 20:04 pro4never#8
take all the files that you want the user to have and then add it to an auto extracting rar file.

Make sure you set up the folder structure the same as how you want.

EG: make a folder called patch to place all the files in.

Say you need your server.dat in the patch, place it in the main folder... say you have some weapon edits to add, add that also to the folder but in the same folders it should appear in the client

So maybe like c3/weapon or w/e

Then select everything in the folder, right click, add to archive (assuming you have win rar installed).

Change the extention to .exe (from .rar)

Go to advanced tab
Click SFX options
Tick "Create in current folder"


tada! You now have an .exe that when run will add the files you want it to to the current folder.