Jump to content

Recommended Posts

Posted

This is my very first bigger share, so be patient please, I’m not so skilled like others are :)

This is complete tutorial how to install PetitionD server and how to configure it. The server is from NCSoft, I haven’t changed anything. The database is my own work, because standard database schema is for old petition server, which doesn’t work with C4 retail. So I had to make totally different database schema, compatible with this client.

So let’s start with database:

 

PART I – DATABASE

Everything is tested on MS SQL server 2005, I was too lazy to looking for 2000 and installing it.

1. Create empty database for petition (in my examples it is call called ‘petition’)

http://aralyon.ratafak.net/peti/1a.jpg

http://aralyon.ratafak.net/peti/1b.jpg

2. Think out connection string – it’s string containing all information about connecting to database (Petition server DOESN’T use DSN like other parts of L2 server)

There are 2 ways how to connect

a) Windows authentication

You authenticate to mssql with your windows username and password - the connection string is

SERVER=[i](Server name)[/i];DATABASE=[i](Database name)[/i];Integrated security=true

EXAMPLE: SERVER=.;DATABASE=petition;Integrated security=true

b) Classic authetification using SQL login (recommended) and password

SERVER=[i](Server name)[/i];DATABASE=[i](Database name)[/i];UID=[i]User name[/i];PWD=[i]Password[/i]

EXAMPLE: SERVER=hades;DATABASE=petidb;UID=sysdev;PWD=tltmxparoqkftlf1234!

3. Open db_schema\petition_schema.sql in MSSQL Management studio (or Query Analyzer in MSSQL2000)

4. Write connection string to INSERT INTO statement, as shown below:

http://aralyon.ratafak.net/peti/1c.jpg

5. Set current database to your petition database in toolbar

http://aralyon.ratafak.net/peti/1d.jpg

6. Execute it, it should return no error

 

PART II – SERVER

1) Choose mode - you can use it like service (originally) or (with my loader) like console program.

2) Installing service - skip if you want to use it like console program

Use InstallUtil from .NET installation directory (I think that it is explained somewhere in other topic.

Syntax is: InstallUtil.exe c:\yourL2server\PetitionD\PetitionD.exe

Some informations about it -

3) Make encrypted connection string:

1) Write your connection string from step 1.2 to a text file (e.g. connstr.txt)

2) Encrypt it with DES.exe
many thanks to Digital
- write name of the text file with connection string to field "File to encrypt" and then click on "Encrypt" button. It should show you a "Done" message and create .enc file (e.g. connstr.txt.enc)

3) it contains encrypted connection string.

4) Edit PetitionD.exe.config (for service version) or PetitionConsole.exe.config (for console version). Configuration options are in format <add key="Name" value="Value"></add>

Description of configuration file:

GmServicePort - port for connecting from GM client

WorldServicePort - port for connection from gameserver, it must be the same as [PetitionD] - port in l2server.ini

NoticeServicePort - I don't know yet, I'll have a look later

AuthIp - Ip address of AuthD (It needs auth to authenticate GM client)

AuthPort - admin port of AuthD

AuthConnCount - size of connection pool

LogDirectory - directory to store log files

EnableQuota, MaxQuota - Quote about number of petitions from one player, leave it off, because it isn't done yet

RunMode - can be "test" or "normal", it is highly recommended to set it on "normal"

DumpPacket - enables dumping packets to log file (I recommend to disable, it is for debugging purposes only)

ServerStatusRefreshInterval - ???

DatabaseConnString - encrypted connection string - you MUST change it to corrent values, otherwise it doesnt work!

DatabaseConnName - leave it, it is name of the connection string in NCDBA7

DatabaseConnCount,DatabaseConnTimeout - leave it

MaxActivePetition - maximum number of petitions

MinimumGmClientBuildNumber - minimum version of GM client

EnableGmStatusDump - ???

EnableAssignment - ???

MaxAssignmentPerGm - ???

EnableOnlineCheck - ???

 

So it is everyting, now petition server is configured. you can start console version with PetitionConsole.exe and service version in service manager in control panel.

It is not still fully tested, but I hope there is no more bugs. If you find anything, please write it to this topic or send me icq or msn message

 

There is one big problem related to it - It looks like external gm client is needed, because the only method which can get petition into state 3 (petition after submitting is in state 2) is called from gm client listener handler (=invoked by gm client).

But gm client supplied with server doesnt work, probably it is intended to use with old petitionD.

I wrote one, it is here - http://www.postpacific.com/forums/showthread.php?p=66313. GMs can't do nearly anything with submitted petition with L2 client, you have to use GM client. The only builder command related to petition (which I know what it si doing is //force_peti <charname> <petition content> which forces player to submit a petition.

Security notice - for security reasons restrict database access for petition server, there might be security issues, it is unlikely,but it is possible.

 

Enjoy it :)

 

Download: http://aralyon.ratafak.net/peti/PetitionD.rar

- password: postpacifik

- it includes all files and tools described in this topic

 

GM Petition client:

forum thread - http://www.postpacific.com/forums/showthread.php?p=66313

direct download - http://aralyon.ratafak.net/peti/gmclient.rar

 

Do you have problems with submitting petitions with UnexpectedCategory error?

 

 

  • 4 months later...
  • 1 year later...
Guest
This topic is now closed to further replies.
  • Posts

    • Close that LOLserver. And change name to L2Wipe&Money.
    • Open Beta January 17th & 21:00 UTC +2 Launch Date January 24th & 21:00 UTC +2 Click Here to Explore Vanilla Gracia Final Low-Rate Server. Join our Discord Community     Following the success of our Vanilla project, we decided to launch it again as Last PlayINERA’s Server! Core Settings *Vanilla will have Strict Botting & Client Limitation Rules and Chronicle Progression from Gracia Final to Gracia Epilogue to H5 in Long term! XP: x4 SP: x4 Adena: x2 Drop: x2 Spoil: x3 Manor: x0.4 (60% reduction) - Festive sweeper enabled! Seal Stones: x2 Herbs: x1 Safe Enchant: +3 Maximum Enchant: Retail Enchant Rate: Dynamic General Settings Auto-loot Can be toggled Buffs Adventurer Guide buffs are free, retail level limit removed. Buff Slots: 20 (+ 4) Summon buffs will remain on re-summoning & on death while Noblesse blessing is applied! (Olympiad excluded) Pet buffs will be saved on relog but not during summon/unsummon. Event Buffer [NEW] Event Buffer is enabled and will spawn randomly between 18:00 ~ 23:00 in Giran for 10 minutes, it will apply Farm Only buffs that are cancelled in PvP, Siege / Epic PvP zones & while in a chaotic state! Duration: 1-hour! Territory Wars every two weeks on Saturday. Castle sieges every two weeks on Sunday Class Transfer 1st Class Transfer: Available for purchase with either Adena or iCoin 2nd Class Transfer: Available for purchase with either Adena or iCoin 3rd Class Transfer: Quest or iCoin (the 3rd class transfer will become available for purchase with iCoin as soon as someone has entered the Hall of Fame for completing the 3rd class transfer quest for the class in question) Hellbound Hellbound Lv. 0-6: ATOD x1 Hellbound Lv. 7-12: ATOD x2 Tiat & Ekimus will become available at Stage 12 Hellbound can only be leveled up by killing monsters. No quests or raids are needed To open Hellbound, a party must kill Baylor in the Crystal Caverns The following items are now tradable: Ancient Tome of the Demon  Hidden First Page  Hidden Second Page  Demon Contract Fragment INERA Hub Library Clan Recruitment System Options Services Milestone Rewards Earn rewards for reaching various daily/one-time goals Client Limit: 1 (+1 with Standard Premium) Shift + Click Information on Monsters SP are required to learn new skills Offline shops Lasts for 15 days Olympiad Olympiad period: 1st and 15th day of the month (14th & Last day of month is the last day) 3 Vs. 3 match disabled Class-based matches will be held over the weekends One registration per HWID (PC) Minimum participants: 9 Party Matching System Earn bonuses for finding a group via the Party Matching system Vote Reward System World Chat No limits for first day! Available from level 20 Raid Bosses Epic Raid Boss zones will turn into a PvP zone while the Epic Raid Boss is alive ( + means Random) Server will start with all grand raids dead. Normal Raids: 12h (+6 hours random). Subclass raids, respawn 12h (+6 hours random). Noblesse Barakiel 12h (+6 hours random, PvP zone). Anakim & Lilith are static 24 hours respawn. Queen Ant: 24 hours (+2 hours random). Core: 40 hours (+2 hours random). Orfen: 32 hours (+2 hours random). Antharas Respawn: 8 Days. Randomly spawns at 19:00 ~ 21:00 Boosted to level 83 on Hellbound stage 7. Valakas Respawn: 10 Days. Randomly spawns at 19:00 ~ 21:00 Baium Respawn: 5 Days. Randomly spawns at 21:00 ~ 23:00 Boosted to level 83 on Hellbound stage 7. Frintezza Respawn: 2 Days. Randomly spawns at 21:00 ~ 23:00 Instanced Zaken Zaken (Day): Monday, Wednesday, Friday at 6:30. Zaken (Day): 9 players, LvL 55-65, 1hr max. Zaken (Night): Wednesday at 6:30 Zaken (Night): 18-45 players, LvL 55-65, 6hr max. Tiat: Saturday at 6:30, 18-36 players, 2 hrs max. Boosted to level 85. Ekimus: 24h at 6:30, 18-27 players, 1hr max. Tully’s Workshop (Darion & Tully): 24h +-1h. Tower of Naia (Beleth): 5 days, 18 min. & 36 max.
  • Topics

×
×
  • Create New...