Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 10:46

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[LazyRelease] Log python npc scripts from TQ!

Discussion on [LazyRelease] Log python npc scripts from TQ! within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old 03/29/2011, 21:32   #16
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
How is the location etc exportet, .sql? In that case, why release a tool when you can release them at all once telling the user to simply change the table name, and convert the python scripts manually if he wish.
_Emme_ is offline  
Old 03/29/2011, 21:52   #17


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
Quote:
Originally Posted by EmmeTheCoder View Post
How is the location etc exportet, .sql? In that case, why release a tool when you can release them at all once telling the user to simply change the table name, and convert the python scripts manually if he wish.
I would imagine because this method involves some amount of effort from the user, unlike your spoon-feeding approach.
Korvacs is offline  
Thanks
1 User
Old 03/29/2011, 21:57   #18
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
Quote:
Originally Posted by Korvacs View Post
I would imagine because this method involves some amount of effort from the user, unlike your spoon-feeding approach.
Also because it allows people to update themselves in time.

EG: 6 months from now when tq adds 100 more npcs (seriously, every time I log in there's like 10 new ones) you can take 10-20 minutes to jump around the server and log them all again and get a fresh database unlike the recycled ones that have been being used in just about every public source out there for the past year or two.

But yah, that + I like at least leaving the possibility for a bit of work/thought for the end user that might help them think of similar concepts that would make their life a bit easier.
pro4never is offline  
Old 03/30/2011, 01:43   #19
 
.Kinshi's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 341
Received Thanks: 255
Its really simple to log multiple pages of dialog.

For my proxy I do:

Server Packets:
Code:
                case 2031:
                case 2032:
                    {
                        NpcTalkPacket packet = new NpcTalkPacket(Data);
                        StreamWriter sw = new StreamWriter("Dialogs/" + Client.Hero.CurrentNpc + ".txt", true);

                        switch (packet.LinkType)
                        {
                            case 1:
                                sw.WriteLine("\nNpc {0}", Client.Hero.CurrentNpc);
                                sw.WriteLine("Dialog {0}\nText:\"{1}\"", packet.LinkCount, packet.Text);
                                break;
                            case 2:
                                sw.WriteLine("Option {0}:\"{1}\"", packet.LinkID, packet.Text);
                                break;
                            case 3:
                                sw.WriteLine("Input {0}:\"{1}\" Length: {2}", packet.LinkID, packet.Text, packet.wParam);
                                break;
                            case 4:
                                sw.WriteLine("Avatar {0}", packet.wParam);
                                break;
                        }

                        sw.Flush();
                        sw.Close();
                        break;
                    }
Client Packet:
Code:
                case 2031:
                    {
                        NpcTalkPacket packet = new NpcTalkPacket(Data);
                        Client.Hero.CurrentNpc = packet.Identifier;
                        break;
                    }

It logs all the pages of the dialog and says which dialogs are for which offset.

It's just a quick mash up, but it works well.
.Kinshi is offline  
Old 03/30/2011, 02:28   #20
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
The reason I'm not logging multiple pages is tq numbers their options like a tree... EG: option 1 is always the first option regardless of which page you are on.

Obviously I could write a more advanced system to keep track of which page you're on and structure the script accordingly but the way the script system currently works simply doesn't allow for that to be done easily.


EG:

Linkback 0:
"Chose an option"
"Option 1" 1
"Option 2" 2
"Exit" -1

Linkback 1:
"Chose another option"
"Option 3" 1
"Option 4" 2
"Exit" -1

If you log from tq you'd end up with something like this (the numbers after the quote are the linkback number tq would use)
pro4never is offline  
Old 03/30/2011, 03:05   #21
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
Most npcs act differently according to conditions as well, so you'll never get the full dialog.
_tao4229_ is offline  
Old 04/01/2011, 20:03   #22
 
BioHazarxPaul's Avatar
 
elite*gold: 0
Join Date: Nov 2005
Posts: 548
Received Thanks: 93


Im working on a C#Python Npc GUI, well I'm not the best coder so ideas and some help would be useful if anyone is interested in giving me a hand.. could turn this into something really good with remote connect and stuff, but I really have no idea on that type of stuff.. I'm just bored and I thought something to help make coding them a little bit faster to be a +
BioHazarxPaul is offline  
Old 06/27/2011, 23:46   #23
 
elite*gold: 0
Join Date: Jun 2011
Posts: 4
Received Thanks: 0
Hello,
i cannot seem to get this working properly, i hope someone can help me.
its giving me errors like these:

Could not find file: AlchemyProxy\bin\Debug\map\map\smap\1720.smap

and do i have to change the settings in program.cs ? i mean password/host/gameip etc

Edit~
i have just read that its alright to have those missing maps in on of the other guides.
however my client is unable to connect after these changes.

the only thing im unsure of is what information i should place in program.cs
do i leave it as it is or do i have to fill my settings in.
i have disabled windows firewall, this should not be an issue
Mangtesu is offline  
Old 06/28/2011, 00:08   #24
 
BioHazarxPaul's Avatar
 
elite*gold: 0
Join Date: Nov 2005
Posts: 548
Received Thanks: 93
yah you will need to put ur setting in, can use a hamachi ip or router ip, will also need to provide ur database information..
BioHazarxPaul is offline  
Thanks
1 User
Old 06/28/2011, 07:06   #25
 
elite*gold: 0
Join Date: Jun 2011
Posts: 4
Received Thanks: 0
Quote:
Originally Posted by BioHazarxPaul View Post
yah you will need to put ur setting in, can use a hamachi ip or router ip, will also need to provide ur database information..
alright im doing this but still i cannot get it to work.
im guessing im messing up some settings





Edit~~
didnt have the correct loader IP.
this was the problem!


Edit2 ~~
is it possible to make it log like more than just the first dialog ?
Mangtesu is offline  
Old 06/28/2011, 07:54   #26
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
Nope. You can only log the first page because of how tq handles their npcs. It would take more work then it's worth to even attempt to make a 'full' npc logger. It's simply not feasible.
pro4never is offline  
Thanks
1 User
Old 06/28/2011, 10:16   #27
 
elite*gold: 0
Join Date: Jan 2011
Posts: 470
Received Thanks: 97
I kinda do something like this too, but I don't trust TQ's grammar. I've actually corrected every single NPC that I've read from TQ's server. It's really bad (taking that this is supposed to be an American game).
Spirited42 is offline  
Old 06/28/2011, 11:31   #28
 
elite*gold: 0
Join Date: Jun 2011
Posts: 4
Received Thanks: 0
Quote:
Originally Posted by pro4never View Post
Nope. You can only log the first page because of how tq handles their npcs. It would take more work then it's worth to even attempt to make a 'full' npc logger. It's simply not feasible.
Alright, well first page only is awesome aswell, will save me alot of typ work.
Thnx!
Mangtesu is offline  
Old 07/04/2011, 17:23   #29
 
{ Angelius }'s Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 991
Received Thanks: 1,107
i just started with the npcs coding today and i figured that yes you can record all pages . and if you are serious about it you can code it to give you a ready to use (Copy/paste) output

and pro thanks for releasing that proxy ,its a very useful tool .
{ Angelius } is offline  
Old 07/09/2014, 02:42   #30
 
C# Coder's Avatar
 
elite*gold: 0
Join Date: Mar 2011
Posts: 78
Received Thanks: 8
stuck at the "logging into account server" when trying to log!

Edit: I think it's a port problem, game IP port prob cause the auth account server show the message then stops then it's waiting for the game server!
C# Coder is offline  
Reply


Similar Threads Similar Threads
Automaton Scripts python
12/17/2010 - Flyff Private Server - 1 Replies
hi Leute hi ******** ich war schon lange nicht mehr on und nun habe ich wieder lust und zeit Fame zu spielen ich suche wieder scripts in python geschrieben für automaton 1.3 pls hab schon SuFu und gegooglet leider nichts gefunden weis auch nimmer wie die scripts heisen. PM me oder post
PYTHON SCRIPTS AUSFÜHREN
03/12/2010 - Metin2 - 2 Replies
kennt jmd in metin2 n py script, das ein anderes script ausführt, oder weiß jmd wie man das macht??
agBot Loop Scripts [ Let's Make alist with Mobs Scripts ]
07/09/2008 - SRO Hacks, Bots, Cheats & Exploits - 228 Replies
Hello Everyone, i saw that everyone is getting stuck to make agBot Loop Script. so i though we should make a topic a mobs scripts. and i will start. :) Now for me i prefer to use notepad to make my scripts. How to install : Just Copy the code and paste in <bot folder>\config\config1\script\default.lst If we got more scripts, i will just make a webpage, where you can select Town, HP and MP Bots you wanna buy then the monster you want to kill. then it auto generate the script for you....



All times are GMT +2. The time now is 10:46.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.