View Full Version : PetitionD
Anybody know how install PetitionD (retail) ?
Yea... Start in right section...
empathon
14.08.2006, 21:35
as a windows service has i know
that's correct, you have to register it as a service
that's correct, you have to register it as a service
How it register? May be special utility use? Please help...
Ive registed it as a service ran it, tried connecting to it, but... Nothing :D
to register it as a service, search for InstallUtil.exe, should be in a directory like C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 or so.
then you just use this bat file:
(you have to change the SERVICE_HOME and the INSTALL_UTIL_HOME variables)
@echo off
set SERVICE_HOME=C:\PetitionD
set SERVICE_EXE=PetitionD.exe
REM the following directory is for .NET 1.1, your mileage may vary
set INSTALL_UTIL_HOME=C:\WINDOWS\Microsoft.NET\Framewo rk\v2.0.50727
REM Account credentials if the service uses a user account
set USER_NAME=
set PASSWORD=
set PATH=%PATH%;%INSTALL_UTIL_HOME%
cd %SERVICE_HOME%
echo Installing Service...
installutil /name=ScriptedServiceExample /account=user /user=%USER_NAME% /password=%PASSWORD% %SERVICE_EXE%
echo Done.
Ive registed it as a service ran it, tried connecting to it, but... Nothing :D
I think that it need config file becouse it started then
"The petitiond service terminated unexpectedly. It has done this 2 time(s)."
obviously. you have to change 'PetitionD.exe.config'.
I think that parametr need
<add key="DatabaseConnString" value="B6NJ2ab29wzbfvRzfTrkqivyUcqwfbkYaYEFjlaPPtVXD12fqt km7s0UAPkvWQRK8AraQ0vMAkg8A5nOz4WL/l1/38gql/zW"></add>
I have petition D service running.. but L2server can't connect.. L2 service dont open any ports
I have petition D service running.. but L2server can't connect.. L2 service dont open any ports
do you change DatabaseConnString string ?
Hmmm I can't seem to get it working for some reason...
right.. i believe u guys will need this file :)
Вложения из исходного сообщения (сами файлы в копии отсутствуют):
des_333.zip — 6063 байт
right.. i believe u guys will need this file :)
hmm ill give it a try,
as for password, look closley at the post for anything thats not really right :)
took me 10 sec :) Thanks "digital"
hmm ill give it a try,
as for password, look closley at the post for anything thats not really right :)
took me 10 sec :) Thanks "digital"
Ok, I admit to being retarded. lol, got it.
Ok, I admit to being retarded. lol, got it.
midnight
17.08.2006, 11:48
when my petition service is running, they spend seconds and it is stopped
well. have Petition installed and run perfectly...
but server didn't see it.
Can some1 tell me more about petition cfg file ?
Actually...even i'm stuck at this point heh >< I dunno if it's a datastring i dont have right but i would assume then the server wouldnt' even start at all.
Anyone else have any thoughts?
Installing the service
First compile the application so you will have an executable (exe). For the Visual Studio users, go to Start -> Microsoft VS.NET -> VS.NET Tools -> VS.NET Command Prompt. You will see a command box (console) then go to the directory where the exe is. then in that directory type
InstallUtil MyFileService.exe This will install the service Once it correctly installed you can start the service by typing
NET START TWINXBASE Or you can go to Services in Configuration, look for the new service, start it. To Remove the service, stop the service and type
InstallUtil /u MyFileService.exe
Yes sexy i got it installed AND runnin it just wont connect worth a damn ><
superkent
18.08.2006, 14:12
Need this procedure - lp_GetDBConnectionStringNCDBA7
um i need it or you need it? ><
get the des_333.zip to encrypt your connectionstring
Uhh...i tried that >< I'll try for a third time when i'm fully awake ^^
Well i grew a brain and put in the log folder ><
2006-08-18 21:40:50 N Petition Service Start (build 20011)
2006-08-18 21:40:50 N Make Database 10 Connections
But other than that nothing. I have edited the Database string using des and unless theirs a key i'm not noticing i'm pretty sure i'm doing it right. It just doesn't want to go :(
And when i have that one running and i run the old it opens up on 2107 and connects to the old one but not the new one ><
Soooooooooooooooooooooooooo i'm assuming either i'm massively braindead and just am not getting this at all or i'm missin heh. Any help would be appreciated.
Phantom2005
19.08.2006, 09:41
until now i can't get it to work either so i suppose your not braindead..
i think we need to run the queries in nc_petition_schema.doc to fix it..
Or are there some other queries where we don't know about?
Nah i got the petition.sql from the old pack and that is on there...
So, has anyone working petition system? My petition seems to be running, it is connected do database, but it dont open any port for connecting from gameserver :(
Lockbete
21.08.2006, 11:27
Wow installed the service and now it gives me "Error 5: Access is denied."
anyone know how to fix this?
Hmmm database schema is very bad, now I can connect to db (i had to create new stored procedure) but there are quite few stored procedures missing :(.
But work is in progress :)
It fails on 2006-08-21 21:18:32 I Load Petition Category
ooo so you followed the .doc and got that far?
Event Type: Error
Event Source: VsJITDebugger
Event Category: None
Event ID: 4096
Date: xx.xx.2006
Time: 08:29:14
User: NT AUTHORITY\LOCAL SERVICE
Computer: LA2
Description:
An unhandled exception ('System.Data.SqlClient.SqlException') occurred in PetitionD.exe [3268]. Just-In-Time debugging this exception failed with the following error: Debugger could not be started because no user is logged on.
Check the documentation index for 'Just-in-time debugging, errors' for more information.
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 02 00 5c 80 ..\€
How to fix it ?
ooo so you followed the .doc and got that far?
No, i dont speak chinese,korean or whatever language it is :)
I used my brain, Visual Studio and several utilities.
Now server si running, but I havent tried to connect it to game server, I'm gonna to find out if there is more procedures/tables missing.
Actual log:
2006-08-22 08:39:34 N Make Database 10 Connections
2006-08-22 08:39:34 N Clear GM Status
2006-08-22 08:39:34 I Load Petition Category
2006-08-22 08:39:34 I 1: +ö¦ÜTÁ+- +è+çT-Tç
2006-08-22 08:39:34 I 2: +üTœ¦¯+ô +ö¦¦¦¿+¾
2006-08-22 08:39:34 I 3: ¦ù+ÂT-+Œ +üTŽ+èTª
2006-08-22 08:39:34 I 4: +ä+»T£+è¦æT« ¦ù+ÂT-+Œ
2006-08-22 08:39:34 I 5: T-+ö+ö+ô T-+ç+ö+ç
2006-08-22 08:39:34 I 200: T-¦+üT¥TÁTÁ+-+Ÿ, T¬+žT-+ó
2006-08-22 08:39:34 I 255: etc category
2006-08-22 08:39:34 I Initial Petition Sequence No: 20060822000001
2006-08-22 08:39:34 N Server Name: my-comp, Server IP: 1xx.xx8.1.61 10.0.0.1 10.0.1.1
2006-08-22 08:39:34 N Starting World Service at 0.0.0.0:3107
2006-08-22 08:39:34 N Starting GM Service at 0.0.0.0:3109
2006-08-22 08:39:34 N Starting Notice Service at 0.0.0.0:3121
2006-08-22 09:05:02 D Feedback Check Timer
2006-08-22 09:05:03 D 0 petition(s) was removed.
Well please clue me in because i'm lost beyond belief lol.
What i'm thinking is its not opening up the port (or it's a totally different port) than what we origionally thought.
From your logs you might try changing the ip too 127.0.0.1 and maybe (i'm just throwin this out here i have no clue wtf it'll do heh) change the world service port to 2109 the port for petition (or gm service i dunno)
Well please clue me in because i'm lost beyond belief lol.
What i'm thinking is its not opening up the port (or it's a totally different port) than what we origionally thought.
From your logs you might try changing the ip too 127.0.0.1 and maybe (i'm just throwin this out here i have no clue wtf it'll do heh) change the world service port to 2109 the port for petition (or gm service i dunno)
No, problem is different - petition database from the retail server is old and it doesnt work with this petition service.
It should work with the old petition, but old petition cant be used with retail c4 server ... so I'm rebuilding database and I'm getting mad from it :D
That's why it couldnt start
Uhh...i tried that >< I'll try for a third time when i'm fully awake ^^
Well i grew a brain and put in the log folder ><
2006-08-18 21:40:50 N Petition Service Start (build 20011)
2006-08-18 21:40:50 N Make Database 10 Connections
...
same problem. My brain need :help:
midnight
22.08.2006, 11:56
My problem is:
The Petition Service service terminated unexpectedly. It has done this 1 time(s).
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
SERVICE_NAME: petitiond
TYPE : 110 WIN32_OWN_PROCESS (interactive)
STATE : 1 STOPPED
(NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN))
WIN32_EXIT_CODE : 1067 (0x42b)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
So, new info about progress :
petition service .... running
game server .... connected
Player can send a petition, but I dont know how to take 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.
Look forward to finish, when I'll be done I will make my first big Share :)
If you want some preview screenshots :)
http://img125.imageshack.us/img125/7501/shot00002eh9.th.jpg (http://img125.imageshack.us/my.php?image=shot00002eh9.jpg) http://img239.imageshack.us/img239/333/shot00003xp6.th.jpg (http://img239.imageshack.us/my.php?image=shot00003xp6.jpg)
and the client running in console (I wrote a loader)
http://img242.imageshack.us/img242/7943/clipboard02ye0.th.jpg (http://img242.imageshack.us/my.php?image=clipboard02ye0.jpg)
it looks complicated... it requres you to encrypt packets? o.O
it looks complicated... it requres you to encrypt packets? o.O
Heh, I didnt wrote whole petition server :)
Normally it run as a service, so I wrote a loader which force server to run in a console.
I'm not sure, but probably packets arent encrypted