PDA

View Full Version : PetitionD


lan15
14.08.2006, 21:07
Anybody know how install PetitionD (retail) ?

Drag
14.08.2006, 21:34
Yea... Start in right section...

empathon
14.08.2006, 21:35
as a windows service has i know

Mayii
14.08.2006, 22:06
that's correct, you have to register it as a service

lan15
14.08.2006, 22:21
that's correct, you have to register it as a service
How it register? May be special utility use? Please help...

xerogen
14.08.2006, 22:39
Ive registed it as a service ran it, tried connecting to it, but... Nothing :D

Mayii
14.08.2006, 22:52
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.

lan15
14.08.2006, 22:55
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)."

Mayii
14.08.2006, 23:04
obviously. you have to change 'PetitionD.exe.config'.

lan15
14.08.2006, 23:10
I think that parametr need
<add key="DatabaseConnString" value="B6NJ2ab29wzbfvRzfTrkqivyUcqwfbkYaYEFjlaPPtVXD12fqt km7s0UAPkvWQRK8AraQ0vMAkg8A5nOz4WL/l1/38gql/zW"></add>

rodier
14.08.2006, 23:39
I have petition D service running.. but L2server can't connect.. L2 service dont open any ports

lan15
15.08.2006, 00:03
I have petition D service running.. but L2server can't connect.. L2 service dont open any ports
do you change DatabaseConnString string ?

Shawnmb
16.08.2006, 01:13
Hmmm I can't seem to get it working for some reason...

Digital
16.08.2006, 03:09
right.. i believe u guys will need this file :)

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
des_333.zip — 6063 байт

Digital
16.08.2006, 03:09
right.. i believe u guys will need this file :)

Shawnmb
16.08.2006, 03:11
Password protected.

Shawnmb
16.08.2006, 03:11
Password protected.

GMan
16.08.2006, 03:26
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"

GMan
16.08.2006, 03:26
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"

Shawnmb
16.08.2006, 03:28
Ok, I admit to being retarded. lol, got it.

Shawnmb
16.08.2006, 03:28
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

Ameron
17.08.2006, 15:29
well. have Petition installed and run perfectly...
but server didn't see it.
Can some1 tell me more about petition cfg file ?

paul
18.08.2006, 04:24
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?

Digital
18.08.2006, 05:31
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

paul
18.08.2006, 05:36
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

paul
18.08.2006, 16:44
um i need it or you need it? ><

Digital
19.08.2006, 01:15
get the des_333.zip to encrypt your connectionstring

paul
19.08.2006, 02:20
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?

paul
19.08.2006, 18:48
Nah i got the petition.sql from the old pack and that is on there...

aralyon
19.08.2006, 21:50
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?

aralyon
21.08.2006, 19:24
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

paul
21.08.2006, 21:07
ooo so you followed the .doc and got that far?

ag1584
22.08.2006, 03:35
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 ?

aralyon
22.08.2006, 07:11
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.

paul
22.08.2006, 07:57
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)

aralyon
22.08.2006, 08:46
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

paul
22.08.2006, 08:52
ahhhhhhhhhhhh dur ><

HF
22.08.2006, 11:06
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

aralyon
22.08.2006, 16:46
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 :)

aralyon
22.08.2006, 17:01
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)

kgptzac
22.08.2006, 17:11
it looks complicated... it requres you to encrypt packets? o.O

aralyon
22.08.2006, 17:48
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