Editing Npcs

07/02/2013 17:33 kiko8koki#1
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 pro4never#2
You have to rebuild/debug the server files after every change you make for them to be seen ingame.
07/02/2013 20:02 kiko8koki#3
Quote:
Originally Posted by pro4never View Post
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 pro4never#4
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 kiko8koki#5
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 :o 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 ? :o
07/02/2013 21:24 CptSky#6
[Only registered and activated users can see links. Click Here To Register...]
07/02/2013 21:54 kiko8koki#7
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 pro4never#8
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 kiko8koki#9
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 : [Only registered and activated users can see links. Click Here To Register...] .. Is that okay ?
07/02/2013 23:00 pro4never#10
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 kiko8koki#11
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 ^_^