|
||
|
|||||||
| Script Support Get support for modifying RunUO Scripts, or writing your own! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) | |
|
Forum Master
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,260
|
Quote:
Code:
using System;
using System.Collections.Generic;
using System.IO;
using Server;
using Server.Commands;
using Ultima;
namespace Server.AAHS
{
public class AAHS_Main
{
public static int Version = 100;
public static string ReleaseDate = "October 23, 2007";
public static List<int> BodyTable;
public static StringList stringList;
[Usage("AAHS")]
public static void AAHS_OnCommand(CommandEventArgs e)
{
Mobile mob = e.Mobile;
mob.CloseGump(typeof(AAHS_Gump));
mob.SendGump( new AAHS_Gump() );
}
public static void Initialize()
{
stringList = new StringList("enu");
Any ideas? ![]() Last edited by Joeku; 10-23-2007 at 05:48 PM. |
|
|
|
|
|
|
#2 (permalink) | |
|
ConnectUO Creator
Join Date: Jan 2004
Age: 28
Posts: 4,891
|
Quote:
in StringList.cs it says sometihng like Code:
while(bin.PeekChar()) Code:
while (bin.BaseStream.Position != bin.BaseStream.Length)
__________________
Jeff Boulanger ConnectUO - Core Developer Want to help make ConnectUO better? Click here to submit your ideas/requests Use your talent to compete against other community members in RunUO hosted coding competitions If you know XNA (even if its just a little) or are a good artist(2d or 3d) and are interested in making games for a hobby send me a pm or drop by #xna in irc.runuo.com. I'm looking to put together a small game development team. Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO |
|
|
|
|
|
|
#4 (permalink) |
|
Forum Novice
|
The funny thing with this issue is it produces on low ram systems, so it's rather difficult to catch it.
Try to launch Razor or Pandora's box (last version) on a box with 128 MB RAM, you'll get this exception.
__________________
La connaissance s'accroît quand on la partage. Share your knowledge, you'll increase it. Utopia. Votre Monde. |
|
|
|
|
|
#5 (permalink) |
|
Forum Expert
|
Opening the file with ASCII encoding instead of utf8 also seems to fix the problem. Since the actual contents are read as bytes by uosdk the encoding won't matter, but it will allow the peekchar to not overflow.
__________________
----------------------- If your response will contribute nothing to this discussion except to insult me, or someone else in this thread, please do not post. I am refering to specific individuals. You know who you are. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|