|
You last visited: Today at 00:43
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.
05/08/2010, 23:59
|
#1
|
elite*gold: 0
Join Date: Dec 2006
Posts: 684
Received Thanks: 238
|
DELETE ME
Fixed, read last page.
|
|
|
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?
|
|
|
05/09/2010, 00:23
|
#3
|
elite*gold: 0
Join Date: Dec 2006
Posts: 684
Received Thanks: 238
|
fixed.
|
|
|
05/09/2010, 02:58
|
#4
|
elite*gold: 0
Join Date: Feb 2006
Posts: 550
Received Thanks: 81
|
show us where Portals[] is defined.
|
|
|
05/09/2010, 21:33
|
#5
|
elite*gold: 0
Join Date: Dec 2006
Posts: 684
Received Thanks: 238
|
fixed.
|
|
|
05/10/2010, 19:18
|
#6
|
elite*gold: 0
Join Date: Dec 2006
Posts: 684
Received Thanks: 238
|
Bump, need help so I can move on.
|
|
|
05/10/2010, 21:40
|
#7
|
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.
|
|
|
05/10/2010, 22:21
|
#8
|
elite*gold: 0
Join Date: Dec 2006
Posts: 684
Received Thanks: 238
|
Quote:
Originally Posted by Korvacs
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?
|
|
|
05/10/2010, 22:25
|
#9
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
|
Where were the portals loaded previously?
|
|
|
05/10/2010, 22:35
|
#10
|
elite*gold: 0
Join Date: Dec 2006
Posts: 684
Received Thanks: 238
|
Fixed.
|
|
|
05/10/2010, 22:38
|
#11
|
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.
|
|
|
05/10/2010, 22:47
|
#12
|
elite*gold: 0
Join Date: Dec 2006
Posts: 684
Received Thanks: 238
|
Fixed.
|
|
|
05/10/2010, 22:56
|
#13
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
|
Make:
The last thing you do in your foreach loop.
|
|
|
05/10/2010, 23:04
|
#14
|
elite*gold: 0
Join Date: Dec 2006
Posts: 684
Received Thanks: 238
|
Quote:
Originally Posted by Korvacs
Make:
The last thing you do in your foreach loop.
|
Works man, thank you very much!
Really appreciate it!
|
|
|
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. =(
|
|
|
|
|
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.
|
|