Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Server Modifications ONLY!
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 09.09.2006, 00:12   #51
GMan
Архивный участник
 
Join Date: Sep 2005
Posts: 198
Default

well i was going to but it looks like something went wrong, i thought i saved the sql file after i changed it but i cant fine it, then i went to just create a SQL script from my current petition DB and it has 8000's in it.

but all i did was search for 8000 in the SQLand change them to real numbers like

gmname to 20
ssq to 50
account to 20
content to 5000 - guessing here not sure how long a petition description can be.

and so on because char names acan only be 16 chars long and i think accounts could only be 18??, cant remember off the top my head

as for the row_number like i said i have not figured that out, there must be a way to do it in normal SQL it looks like its used to set the row to start on then read the next @size results. not sure bt if thats it i remember looking up a simmaler thing before with MSSQL because it does not really support the LIMIT command
GMan is offline  
Old 13.09.2006, 09:43   #52
IVB
Архивный участник
 
Join Date: Jan 2006
Posts: 79
Default

I made sql schema for sql2k:

- rewrote statement to create user-defined type TSeq using 2k syntax.

- remove "EXEC dbo.sp_executesql" to creating procedures and replace them with "CREATE PROCEDURE" operators.

- rewrote procedure that uses ROW_NUMBER() to exlude this function from 2k5.

- replace varchar(max) to reasonable values.

Schema for sql2k in attachment.

But I can't test this schema - I can't run PetitionConsole.exe ;(

Immidiatelly after starting it shows error window with following text: "The application failed to initialize properly (0xc0000135). Click OK to terminate the application."

Please let me know what I doing wrong... Need help! :help:

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
petition.rar — 2712 байт
IVB is offline  
Old 13.09.2006, 10:43   #53
mantrastic
Архивный участник
 
Join Date: Apr 2006
Posts: 338
Default

thanks imma test it

edit: that works perfectly, thanks alot dude!
mantrastic is offline  
Old 13.09.2006, 11:12   #54
GMan
Архивный участник
 
Join Date: Sep 2005
Posts: 198
Default

Quote:
Originally Posted by IVB View Post
Immidiatelly after starting it shows error window with following text: "The application failed to initialize properly (0xc0000135). Click OK to terminate the application."
you have .net 2 installed? or any .net
GMan is offline  
Old 13.09.2006, 12:10   #55
IVB
Архивный участник
 
Join Date: Jan 2006
Posts: 79
Default

Quote:
Originally Posted by GMan View Post
you have .net 2 installed? or any .net
Now - installed. At the time when I tested PetitionD - not installed.

Thanks for your answer, the problem was in .NET Framework. I read 1st post MANY times and don't found single word about .NET Framework required...

2 aralyon:
Please, edit 1st post and add requirements...
IVB is offline  
Old 13.09.2006, 13:50   #56
IVB
Архивный участник
 
Join Date: Jan 2006
Posts: 79
Default

Quote:
Originally Posted by aralyon View Post
ServerStatusRefreshInterval - ???
How often (in seconds) PetitionD checks status of L2server.
IVB is offline  
Old 14.09.2006, 23:53   #57
Shawnmb
Архивный участник
 
Join Date: Feb 2005
Posts: 307
Default

Quote:
Originally Posted by GMan View Post
and so on because char names acan only be 16 chars long and i think accounts could only be 18??, cant remember off the top my head
In the default databases you can only have an account name length of 14/16 characters, however L2server (user_data) has it's account name column set to a max of 50 characters. This leads me to believe that account names could technically be as long as the game's username box if your databases are set up properly.
Shawnmb is offline  
Old 20.09.2006, 05:00   #58
top-gear
Архивный участник
 
Join Date: Aug 2005
Posts: 605
Default

thanks for the great share! it works perfect. Just 2 questions...

1) There is a restriction for petition submitting from 5am to 1pm. can it be removed somehow? Maybe its client side I don't know...
2) Is there a way to view petition logs in a list and not shiffled through the database? It would be nice to be able to check my gms that way.

Keep up the good work
top-gear is offline  
Old 20.09.2006, 10:16   #59
mantrastic
Архивный участник
 
Join Date: Apr 2006
Posts: 338
Default

top gear, go to server.ini [petitionD] delete that line that says about that disable etc.
mantrastic is offline  
Old 20.09.2006, 12:18   #60
top-gear
Архивный участник
 
Join Date: Aug 2005
Posts: 605
Default

thanks a lot
top-gear is offline  
Old 03.10.2006, 13:12   #61
Slonik
Архивный участник
 
Join Date: Oct 2005
Posts: 14
Default trouble

Code:
Unhandled Exception: System.Net.Sockets.SocketException: Only one usage of each
socket address (protocol/network address/port) is normally permitted
   at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress
socketAddress)
   at System.Net.Sockets.Socket.Bind(EndPoint localEP)
   at NC.ToolNet.Net.Server.ListenerSocket.Start(EndPoint localEndPoint) in d:\p
roject\hades\tool.net\library\toolnet\source\main\nc.toolnet\net\server\listener
socket.cs:line 29
   at NC.PetitionD.BusinessLogic.Start() in d:\project\hades\tool.net\applicatio
n\petition\petitiond\businesslogic.cs:line 62
   at RetailPetiTest.Program.Main(String[] args)
where the trap?
Slonik is offline  
Old 03.10.2006, 15:37   #62
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

Quote:
Originally Posted by Slonik View Post
Code:
Unhandled Exception: System.Net.Sockets.SocketException: Only one usage of each
socket address (protocol/network address/port) is normally permitted
   at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress
socketAddress)
...
where the trap?
trap?

Check Task Manager. Maybe your Petition server already work as service.
HF is offline  
Old 03.10.2006, 17:33   #63
Slonik
Архивный участник
 
Join Date: Oct 2005
Posts: 14
Default

No. It's absent.
Slonik is offline  
Old 03.10.2006, 17:44   #64
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

Quote:
Originally Posted by Slonik View Post
No. It's absent.
check your settings for Petition Server. You have conflict for network port.
HF is offline  
Old 03.10.2006, 19:07   #65
BloodLine
Архивный участник
 
Join Date: May 2006
Posts: 26
Default

Thank you HF, really a nice share works great
BloodLine is offline  
Old 17.10.2006, 01:50   #66
hhk31257
Архивный участник
 
Join Date: May 2006
Posts: 166
Default

hello

first of all: thx very much for this share!!!

ok, i have installed the petition server and everything seems to work.
but when i enter a petition it always says that i have 4 petitions left today and that there are 11 petitions pending...

does anyone know how to fix this?
i deleted petitioncategory.txt in the script folder.

thanks in advance
hhk31257 is offline  
Old 20.10.2006, 14:17   #67
hhk31257
Архивный участник
 
Join Date: May 2006
Posts: 166
Default

[wrong post]
hhk31257 is offline  
Old 27.10.2006, 11:54   #68
hhk31257
Архивный участник
 
Join Date: May 2006
Posts: 166
Default

i can't add notes (database fail error)
players always see that they have 4 petitions left for today
and that there are 11 petitions pending.

how to fix this?
thanks in advance.
hhk31257 is offline  
Old 27.10.2006, 13:42   #69
aralyon
Архивный участник
 
Join Date: Sep 2005
Posts: 72
Default

I'm sorry, I'm now unable to develop petition system or anything related to L2 server due to loss the server. It is nessecary to have access to live server (or test server, but I'm unable to start L2 server on my PC)
aralyon is offline  
Old 27.10.2006, 14:06   #70
Sauron
Архивный участник
 
Join Date: Feb 2005
Posts: 357
Default

Quote:
Originally Posted by hhk31257 View Post
i can't add notes (database fail error)
players always see that they have 4 petitions left for today
and that there are 11 petitions pending.

how to fix this?
thanks in advance.
Code:
/* To prevent any potential data loss issues, you should review this script in detail before running it outside the context of the database designer.*/
BEGIN TRANSACTION
SET QUOTED_IDENTIFIER ON
SET ARITHABORT ON
SET NUMERIC_ROUNDABORT OFF
SET CONCAT_NULL_YIELDS_NULL ON
SET ANSI_NULLS ON
SET ANSI_PADDING ON
SET ANSI_WARNINGS ON
COMMIT
BEGIN TRANSACTION
GO
CREATE TABLE dbo.UserQuota
	(
	account_id int NULL,
	amount int NULL
	)  ON [PRIMARY]
GO
COMMIT

insert into UserQuota values(0,20061008);

IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[up_Server_GetCurrentQuota]') AND type in (N'P', N'PC'))
BEGIN
EXEC dbo.sp_executesql @statement = N'
-- =============================================
-- Author:		<Sauron>
-- Create date: <10.8.2006>
-- Description:	<Description,,>
-- =============================================
CREATE PROCEDURE [dbo].[up_Server_GetCurrentQuota]
	-- Add the parameters for the stored procedure here
@accountuid int
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

	declare @today int;
	set @today = (select (year(getdate()) * 100 + dbo.FormatNumber(month(getdate())))*100+dbo.FormatNumber(day(getdate())));

	if(SELECT amount FROM UserQuota WHERE account_id=0) <> @today
	begin
		DELETE FROM UserQuota WHERE account_id <> 0;
		UPDATE UserQuota SET amount = @today WHERE account_id = 0;
		SELECT 0 as amount;
 	end;
	else
		SELECT isnull( sum(amount) , 0) as amount FROM UserQuota WHERE account_id = @accountuid;

END
' 
END

IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[up_Server_UpdateQuota]') AND type in (N'P', N'PC'))
BEGIN
EXEC dbo.sp_executesql @statement = N'
-- =============================================
-- Author:		<Sauron>
-- Create date: <10.8.2006>
-- Description:	<Description,,>
-- =============================================
CREATE PROCEDURE [dbo].[up_Server_UpdateQuota]
	-- Add the parameters for the stored procedure here
@accountuid int,
@amount int
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

	declare @today int;
	set @today = (select (year(getdate()) * 100 + dbo.FormatNumber(month(getdate())))*100+dbo.FormatNumber(day(getdate())));

	if(SELECT amount FROM UserQuota WHERE account_id=0) <> @today
	begin
		DELETE FROM UserQuota WHERE account_id <> 0;
		UPDATE UserQuota SET amount = @today WHERE account_id = 0;
 	end;
	else
	begin
		if exists(select * from UserQuota where account_id = @accountuid)
			UPDATE UserQuota SET amount = amount + @amount WHERE account_id = @accountuid;
		else
			INSERT INTO UserQuota values(@accountuid,1);
	end;
END
' 
END
Quote:
Originally Posted by aralyon View Post
I'm sorry, I'm now unable to develop petition system or anything related to L2 server due to loss the server. It is nessecary to have access to live server (or test server, but I'm unable to start L2 server on my PC)
can you share petition client source? i could continue the work.
Sauron is offline  
Old 27.10.2006, 14:50   #71
MuNLoK
Архивный участник
 
Join Date: Sep 2005
Posts: 255
Default

Yes please Aralyon, share your client source, we can continue your work.
MuNLoK is offline  
Old 27.10.2006, 14:57   #72
hhk31257
Архивный участник
 
Join Date: May 2006
Posts: 166
Default

ty sauron, appreciated.
aralyon thanks for you works so far!, sharing your source would indeed benefit the community.

greetz.
hhk31257 is offline  
Old 28.10.2006, 17:37   #73
aralyon
Архивный участник
 
Join Date: Sep 2005
Posts: 72
Default

Quote:
Originally Posted by MuNLoK View Post
Yes please Aralyon, share your client source, we can continue your work.
I would prefer joining a team and continue developing there
aralyon is offline  
Old 28.10.2006, 21:54   #74
djvogans
Архивный участник
 
Join Date: Apr 2005
Posts: 306
Default

aralyon contact demon or HF for help.
djvogans is offline  
Old 30.10.2006, 17:46   #75
aralyon
Архивный участник
 
Join Date: Sep 2005
Posts: 72
Default

Quote:
Originally Posted by djvogans View Post
aralyon contact demon or HF for help.
How can I contact them?
aralyon is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 23:43.