|
You last visited: Today at 22:40
Advertisement
Editing Npcs
Discussion on Editing Npcs within the CO2 Private Server forum part of the Conquer Online 2 category.
07/02/2013, 17:33
|
#1
|
elite*gold: 0
Join Date: Jun 2009
Posts: 68
Received Thanks: 28
|
Editing Npcs
So guys I was editing that NPC " clan manager"
He should be able to do every thing but he only let people create clans not disbanding them.
So I went to the source code and found that the code is there and the option is there.
But still it's not in the server when I try.
I have tried also to make an npc which take 5k cps and give u item. But also what I added wasn't found.
Any Ideas what could be wrong ?
|
|
|
07/02/2013, 18:48
|
#2
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
|
You have to rebuild/debug the server files after every change you make for them to be seen ingame.
|
|
|
07/02/2013, 20:02
|
#3
|
elite*gold: 0
Join Date: Jun 2009
Posts: 68
Received Thanks: 28
|
Quote:
Originally Posted by pro4never
You have to rebuild/debug the server files after every change you make for them to be seen ingame.
|
Yes I do that, but nothing really happen.
How ever, I always get 3 errors every single time I do any thing.
The errors are :
} expected " line xx "
} expected " line xx "
} expected " line xx "
I even removed the whole npc and still the error instead it's in line 23 for example, it goes to line 31. So every time same error. Why do u think this may happen ?
|
|
|
07/02/2013, 20:28
|
#4
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
|
That's because you've coded something incorrectly.
According to that you're missing a closing bracket. That will make you unable to compile until you close your brackets properly.
|
|
|
07/02/2013, 21:22
|
#5
|
elite*gold: 0
Join Date: Jun 2009
Posts: 68
Received Thanks: 28
|
Alright, So I got the original Npc.cs File ( the one i didn't edit ) And It doesn't give me any error, but when I compile it. It works well until I login into the server and it get stuck on " Connecting to game server" and Then an error message appear on the source code in weird language  So I translated it.
"A call to PInvoke function MrDeMoProject! ShekoProject.Network.Cryptography.Blowfish :: CAST_set_key the stack imbalance charged. This is probably because the PInvoke signature with accompaniment does not match the target signature unaccompanied. Check that the calling convention and parameters of the PInvoke signature match the target signature unaccompanied."
What in the earth is this ?
|
|
|
07/02/2013, 21:24
|
#6
|
elite*gold: 0
Join Date: Jan 2008
Posts: 1,443
Received Thanks: 1,175
|
|
|
|
07/02/2013, 21:54
|
#7
|
elite*gold: 0
Join Date: Jun 2009
Posts: 68
Received Thanks: 28
|
Man, I am getting frustrated. I turned off that blow fish thing. And then I debugged the game and entered the server. And All the npcs stopped working o_o
|
|
|
07/02/2013, 22:26
|
#8
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
|
Sounds to me like you should focus on learning basic programming before attempting a private server. You are making this far too complex for yourself.
Learn the basics of the language and then start again with a fresh source. Get it up and working properly and then work on making small edits until you are comfortable with both the language and the source itself.
Once that's done you can worry about making larger changes and hosting your own server.
|
|
|
07/02/2013, 22:46
|
#9
|
elite*gold: 0
Join Date: Jun 2009
Posts: 68
Received Thanks: 28
|
Alright, True! I actually have Java and JavaScript knowledge. I thought it won't be so hard for me to try and run this weird source. Anyway, Do you recommend me any fresh sources that I can try whatever I learn on them? And I think I am going to follow this tutorial :  .. Is that okay ?
|
|
|
07/02/2013, 23:00
|
#10
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
|
It's all personal preference really.
If you want something you can play while you learn I'd probably recommend my albetros source. If you want a base source to essentially write your own server ontop of then you could use hybrid's, impulse's or my own base sources depending on patch you wanted.
As for tutorials it's really just personal preference and how you learn best. All your issues right now seem to boil down to the most basic issues with C# knowledge (aka closing your brackets!)
|
|
|
07/02/2013, 23:09
|
#11
|
elite*gold: 0
Join Date: Jun 2009
Posts: 68
Received Thanks: 28
|
Haha. Well I know how to close brackets, But it was weird cause when ever I try and fix a bracket, another one pop up o_o. But Still I admit I am totally a beginner yet I know switch, loops, function and classes. Just not experienced with them. Gonna go with your albetros anyway  Thank You ^_^
|
|
|
 |
Similar Threads
|
How to Add Npcs
11/17/2021 - CO2 Private Server - 11 Replies
hi, i made a conquer private server version 5165
it's works well , but i don't know how to add new Npcs
and i don't have any idea about how to make them
please who know do it contact me in msn: [email protected]
please guys its urgent
|
[pk2 editing] hitcount color editing
08/16/2018 - Silkroad Online - 2 Replies
Hey guys,
i have a question and i hope i find any help here.
When you attack a mob in silkroad, white numbers indicate the amount of damage you dealed to the mob. Now i want to change these white numbers to another color (e.g. blue).
The numbers itself (as .ddj images) can be found in media.pk2/interface/hitcount. Now I extracted them from media.pk2, converted them to .jpg, changed the color, converted them back to .ddj and placed them back into the .media.pk2.
Sadly w/o any...
|
Professional Video Editing/Software {Best Editing Package} (Eg/PSC/Paypal)
06/28/2013 - elite*gold Trading - 9 Replies
My channel
I am now finally selling to the public the different softwares I use to record, edit, compile, compress and upload my videos. The tags I use, the Youtube editing options I use, and how I get views on my videos, legally.
I am not selling illegal software or illegal material that is copyrighted and not owned by me. I am selling the knowledge I have acquired for producing these gaming/desktop videos.
Not only that, I am also selling editing packages:
Package 1: (45 Egold/...
|
Editing Npcs
04/29/2009 - Dekaron Private Server - 3 Replies
Hi There.
Just wondering which files
i use to edit *Npcs*
Such as:
Dialogs.
Options.
Commands.
|
Packet Editing Or CSV Editing That Is The Question!
11/25/2008 - Dekaron - 17 Replies
Well I'd just like to know what people like better packet or csv editing? I'll be the first to post a opinion, its easy to edit csv's if u got the already edited ones like I do, but like it was said in other threads, less lag and less dc's if u edit the packet file......
It's simple to edit csv's tho and make it work for the game, and its alot easier to read considering its seperated by line but some people can't seem to get it to work like how they were told!! so for them packet editing...
|
All times are GMT +1. The time now is 22:41.
|
|