I tried it out with the new core and it's still there. I also found the reason. Sending non-string data to trim() is causing it.
for example:
Trim(0) will crash the core
Trim(error) causes "bad allocation"
Search found 34 matches
- Fri Mar 27, 2009 10:26 am
- Forum: General Help (098)
- Topic: POL 098 Win32, Linux and FreeBSD RC1 - Beer and Waffles
- Replies: 8
- Views: 8446
- Thu Mar 26, 2009 11:33 am
- Forum: General Help (098)
- Topic: POL 098 Win32, Linux and FreeBSD RC1 - Beer and Waffles
- Replies: 8
- Views: 8446
Re: POL 098 Win32, Linux and FreeBSD RC1 - Beer and Waffles
Whoa, great job. And so many new features!
At first try the core seems to crash quiet a lot. I'll research further and bugreport it soon but seems like it's Trim() in one of the packethooks (speech hook to be exact) that is causing it.
At first try the core seems to crash quiet a lot. I'll research further and bugreport it soon but seems like it's Trim() in one of the packethooks (speech hook to be exact) that is causing it.
- Tue Mar 17, 2009 10:32 pm
- Forum: Bug Reports Archive (098)
- Topic: [Fixed] SendCharacterRaceChanger() skin color
- Replies: 2
- Views: 20801
[Fixed] SendCharacterRaceChanger() skin color
As encouraged by MuadDib in another thread, here's another massive bug.
When SendCharacterRaceChanger(who) sets the skin color, it's missing the first bit that is used to make the underwear uncolored. Add 0x8000 to the color value and it should be set as it should.
When SendCharacterRaceChanger(who) sets the skin color, it's missing the first bit that is used to make the underwear uncolored. Add 0x8000 to the color value and it should be set as it should.
- Mon Mar 16, 2009 3:08 pm
- Forum: Bug Reports Archive (098)
- Topic: Crash: Using local variable in dowhile
- Replies: 0
- Views: 18710
Crash: Using local variable in dowhile
Just discovered this one, using it causes core to crash. I'm guessing compiler should catch it.
Code: Select all
do
var some := 1;
dowhile(some);- Sat Feb 21, 2009 7:04 am
- Forum: General Discussion
- Topic: New Pol98 Docs..
- Replies: 9
- Views: 9718
Re: New Pol98 Docs..
Nice job on this one, you also fixed the class hierarchy tree!
Just a small suggestion, how about adding quick link to packet guide?
Just a small suggestion, how about adding quick link to packet guide?
- Sat Feb 21, 2009 6:47 am
- Forum: Bug Reports Archive (098)
- Topic: [Fixed] Spellbook opens at the wrong page
- Replies: 2
- Views: 21043
[Fixed] Spellbook opens at the wrong page
This is a small weirdness I encountered. When I change the location of spellbook and open it, the book opens at the first page. Now if I close the book and open it the second time, it opens where the bookmark is (last used spell). This happens only when the book is in hand, when the spellbook is in ...
- Sat Feb 21, 2009 5:55 am
- Forum: Feature Request Archive
- Topic: Restart()
- Replies: 4
- Views: 23131
Re: Restart()
I would like to point out this suggestion http://forums.polserver.com/viewtopic.php?f=4&t=2165
It's probably much easier to engineer this than the suggested above. Only thing needed is to use batch errorlevels and the batch handles the restart or shutdown. And you could even control all kinds of ...
It's probably much easier to engineer this than the suggested above. Only thing needed is to use batch errorlevels and the batch handles the restart or shutdown. And you could even control all kinds of ...
- Wed Feb 18, 2009 4:12 pm
- Forum: Feature Request Archive
- Topic: Setting item name on creation
- Replies: 1
- Views: 19935
Setting item name on creation
As I'm encouraged in the development's current direction, I bring this topic up as there are currently no right way to set name for custom items. I think this is one of the more essential missing features in Pol.
Setting item name on creation:
var desc := GetItemDescriptor("bench");
desc.color ...
Setting item name on creation:
var desc := GetItemDescriptor("bench");
desc.color ...
- Mon Jun 23, 2008 3:23 pm
- Forum: Bug Reports (097)
- Topic: character.clientversion
- Replies: 2
- Views: 20839
- Sat May 24, 2008 8:47 am
- Forum: Feature Request Archive
- Topic: Shutdown(return value)
- Replies: 0
- Views: 3432
Shutdown(return value)
Core support for rebooting would be nice, but that would probably be quite a tough task to achieve. Best way to be sure nothing is left hanging, is to kill the whole server process. And thus, if shutdown would take optional parameter (1 byte integer) that is returned to OS, this could be achieved ...
- Wed May 07, 2008 4:57 pm
- Forum: POL Tools
- Topic: Some questions about editors
- Replies: 2
- Views: 6673
- Wed Apr 30, 2008 11:17 am
- Forum: General Help (097)
- Topic: Coordinates
- Replies: 0
- Views: 3069
Coordinates
Here's a topic that I think would need some improvement. Current habit is to use coordinates in four different variables. Instead of that, I suggest everyone to start using coordinates in a struct: {x, y, z, realm} It's more easy to use (takes less time writing), simpler, cleaner. In the end, it ...
- Tue Apr 08, 2008 10:38 pm
- Forum: Feature Request Archive
- Topic: ECompiler: for loop variable declaration (minor issue)
- Replies: 12
- Views: 17436
- Thu Apr 03, 2008 10:18 am
- Forum: Solved Bugs (097)
- Topic: [fixed] OnRemoveScript - item_amount parameter
- Replies: 1
- Views: 19616
[fixed] OnRemoveScript - item_amount parameter
program onremovescript(character, container, item, item_amount, movetype)
Item_amount parameter is missing here, instead it sends movetype in place of item_amount.
Since the script runs before the item is actually dragged, item.amount would return the original stack amount, not the amount that ...
Item_amount parameter is missing here, instead it sends movetype in place of item_amount.
Since the script runs before the item is actually dragged, item.amount would return the original stack amount, not the amount that ...
- Tue Mar 04, 2008 1:37 am
- Forum: Contributed Scripts & Packages
- Topic: Share-a-function thread
- Replies: 1
- Views: 3953
Share-a-function thread
To encourage everyone to give something back to the community, share a small (or big) helper function you are frequently using in your scripting. Maybe some of thease would fit in the distro as well.
To start off, here's two of our item functions.
/*
Reaches
Checks if player reaches the ...
To start off, here's two of our item functions.
/*
Reaches
Checks if player reaches the ...
- Tue Feb 19, 2008 3:50 am
- Forum: General Help (097)
- Topic: Character members: cursor, gump and prompt
- Replies: 2
- Views: 4203
- Mon Feb 18, 2008 10:50 pm
- Forum: General Help (097)
- Topic: Character members: cursor, gump and prompt
- Replies: 2
- Views: 4203
Character members: cursor, gump and prompt
In pol refs, you can find these members listed for character:
cursor Boolean True if the client has an active target cursor r/o
gump Boolean True if the client has any active gumps from SendGump r/o
prompt Boolean True if the client has any active String or Unicode prompt windows r/o
Still none ...
cursor Boolean True if the client has an active target cursor r/o
gump Boolean True if the client has any active gumps from SendGump r/o
prompt Boolean True if the client has any active String or Unicode prompt windows r/o
Still none ...
- Sat Feb 16, 2008 2:25 pm
- Forum: Feature Request Archive
- Topic: Mobile MethodScripts (Both NPC and PC)
- Replies: 2
- Views: 4984
- Fri Nov 30, 2007 6:12 pm
- Forum: Scripting Help
- Topic: frozen tag
- Replies: 2
- Views: 3599
- Fri Nov 30, 2007 6:05 pm
- Forum: POL Tools
- Topic: How to "freeze" dynamics into statics
- Replies: 2
- Views: 7160
You can use:
a) RunUO, it has built-in feature to freeze items.
b) WorldForge for Pol. It's more work to use, but you get to use Pol for house building. http://forums.polserver.com/ftopic284.php
c) CentrED, full-fledged editor for statics. http://www.aksdb.de/CentrED/
a) RunUO, it has built-in feature to freeze items.
b) WorldForge for Pol. It's more work to use, but you get to use Pol for house building. http://forums.polserver.com/ftopic284.php
c) CentrED, full-fledged editor for statics. http://www.aksdb.de/CentrED/
- Thu Nov 01, 2007 5:33 am
- Forum: Scripting Help
- Topic: Spec Ranger/ Hitscript
- Replies: 8
- Views: 8769
- Wed Oct 31, 2007 6:02 am
- Forum: Scripting Help
- Topic: ReadConfigFile or Datafile.
- Replies: 5
- Views: 5952
The example I described above let's you create linear one quest after another progress in one cprop. If you want to have non-linear approach to quests, you should use dictionaries = player can complete the quests in any order they want. The cprop is saved to player, so you don't have to save the ...
- Wed Oct 31, 2007 4:46 am
- Forum: Scripting Help
- Topic: ReadConfigFile or Datafile.
- Replies: 5
- Views: 5952
You could use datafiles, but since they need little more hassle to work with, I suggest using cprops if you lack the experience. You can only read and write config files, deleting is not allowed so it's not fit for this kind of job. And ReadFile() is only good for printing text files to player.
A ...
A ...
- Tue Oct 30, 2007 6:46 pm
- Forum: Scripting Help
- Topic: Spec Ranger/ Hitscript
- Replies: 8
- Views: 8769
- Tue Oct 30, 2007 6:40 pm
- Forum: Scripting Help
- Topic: Difference between XObjProperty() and .XProp()
- Replies: 5
- Views: 5674