Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 00:43

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

Advertisement



LoadPortals from INI (LOTF HELP)

Discussion on LoadPortals from INI (LOTF HELP) within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
scottdavey's Avatar
 
elite*gold: 0
Join Date: Dec 2006
Posts: 684
Received Thanks: 238
DELETE ME

Fixed, read last page.
scottdavey is offline  
Old 05/09/2010, 00:18   #2
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
Send me the .ini file file and also can you tell me what line is line 1173?
Basser is offline  
Old 05/09/2010, 00:23   #3
 
scottdavey's Avatar
 
elite*gold: 0
Join Date: Dec 2006
Posts: 684
Received Thanks: 238
fixed.
scottdavey is offline  
Old 05/09/2010, 02:58   #4
 
elite*gold: 0
Join Date: Feb 2006
Posts: 550
Received Thanks: 81
show us where Portals[] is defined.
ChingChong23 is offline  
Old 05/09/2010, 21:33   #5
 
scottdavey's Avatar
 
elite*gold: 0
Join Date: Dec 2006
Posts: 684
Received Thanks: 238
fixed.
scottdavey is offline  
Old 05/10/2010, 19:18   #6
 
scottdavey's Avatar
 
elite*gold: 0
Join Date: Dec 2006
Posts: 684
Received Thanks: 238
Bump, need help so I can move on.
scottdavey is offline  
Old 05/10/2010, 21:40   #7


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
You have defined an array but never populated it.

You need to do something like:

Code:
public static ushort[][] Portals = new ushort[1][1];
But obviously more than 1x1 in size.
Korvacs is offline  
Thanks
1 User
Old 05/10/2010, 22:21   #8
 
scottdavey's Avatar
 
elite*gold: 0
Join Date: Dec 2006
Posts: 684
Received Thanks: 238
Quote:
Originally Posted by Korvacs View Post
You have defined an array but never populated it.

You need to do something like:

Code:
public static ushort[][] Portals = new ushort[1][1];
But obviously more than 1x1 in size.
I'm just using the default lotf variables, when i add the code you posted i get errors,

any ideas?
scottdavey is offline  
Old 05/10/2010, 22:25   #9


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
Where were the portals loaded previously?
Korvacs is offline  
Old 05/10/2010, 22:35   #10
 
scottdavey's Avatar
 
elite*gold: 0
Join Date: Dec 2006
Posts: 684
Received Thanks: 238
Fixed.
scottdavey is offline  
Old 05/10/2010, 22:38   #11


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
Ah there:

Code:
 Portals = new ushort[PortalsC][];
You will need to be storing the portal count in your .ini file somewhere, and then populate the Portal array accordinly.
Korvacs is offline  
Thanks
1 User
Old 05/10/2010, 22:47   #12
 
scottdavey's Avatar
 
elite*gold: 0
Join Date: Dec 2006
Posts: 684
Received Thanks: 238
Fixed.
scottdavey is offline  
Old 05/10/2010, 22:56   #13


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
Make:

Code:
currentid++;
The last thing you do in your foreach loop.
Korvacs is offline  
Thanks
1 User
Old 05/10/2010, 23:04   #14
 
scottdavey's Avatar
 
elite*gold: 0
Join Date: Dec 2006
Posts: 684
Received Thanks: 238
Quote:
Originally Posted by Korvacs View Post
Make:

Code:
currentid++;
The last thing you do in your foreach loop.
Works man, thank you very much!

Really appreciate it!
scottdavey is offline  
Old 05/10/2010, 23:15   #15
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
Korvacs proved my thought right before I could do it. =(
Basser is offline  
Reply


Similar Threads Similar Threads
[HELP]LOTF
11/11/2009 - CO2 Private Server - 1 Replies
Guys , i need some serious help , i`m trying to learn come C# etc. Also i need some knowledge about LOTF , how can i add NPC`s , can i make direct CPS drop from mobs? if so how can i do that? etc , if anyone could help me please PM me or leave msn here. Thanks
[HELP] Compile error with LOTF(i know LOTF sucks but just help)
06/19/2009 - CO2 Private Server - 3 Replies
It says: Loaded 254 portals. Loaded 1027 NPCs. Loaded 37 mobs. Loaded 11147 items. Loaded 172 mob spawns. System.ArgumentOutOfRangeException: 'minValue' cannot be greater then mxValue. Parameter name : minValue at System.Random.Next<Int32 minValue, Int32 maxValue> at COServer_Project.Mobs.SpawnAllMobs<> in C:\Documents and Settings\Admin\My Documents\COServerProject1\COServerProject\Entitie s.cs:line 207
Lotf
03/30/2009 - CO2 Private Server - 2 Replies
Is tehre even away to fix login? in lotf
Lotf
07/22/2008 - Conquer Online 2 - 0 Replies
I have a question in lotf source their is a login bug like when the server go's online in a minute the login freezes anyone know how to fix that?



All times are GMT +1. The time now is 00:43.


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.