Search found 47 matches

by kevin
Tue Sep 18, 2012 5:01 am
Forum: Current stable release (099)
Topic: Linux server logon problem with 099
Replies: 5
Views: 1483

Re: Linux server logon problem with 099

If you compiled with debugging symbols, run it in gdb and wait for the crash again, then get a backtrace. Post that here, and we can look at the src lines where you are having issues.

You are running the latest svn rev?
by kevin
Mon Sep 17, 2012 9:50 pm
Forum: Bug Reports & Feature Requests
Topic: Error in an inequality
Replies: 2
Views: 1373

Re: Error in an inequality

Looks like error and struct both do not have operators defined for those arithmetic operations (<, <=, >, >=, etc) so they only compare the memory addresses of those variables, which would make sense for your "randomness". From a brief glance at the code: x < y: If x is Long: --- If y is Long or Dou...
by kevin
Mon Apr 09, 2012 1:24 pm
Forum: Bug Reports & Feature Requests
Topic: pol099 rev 525 keeps crashing
Replies: 22
Views: 4740

Re: pol099 rev 525 keeps crashing

maybe we should simply change the reap function to iter every time over the complete hash, and change the timing to every x minutes instead of every 2 seconds. if we do it that way, we will need to use mutex to lock out the ObjectHash::Insert() while iterating the map -- otherwise, we'll run into t...
by kevin
Sat Apr 07, 2012 7:25 am
Forum: Bug Reports & Feature Requests
Topic: pol099 rev 525 keeps crashing
Replies: 22
Views: 4740

Re: pol099 rev 525 keeps crashing

Turley, Why did you choose list over hash_map? It seems that a list is even more inefficient, as you have to do a lot of "lets loop from beginning to end to find something" which is more inefficient than hash maps (as long as your hash map has enough buckets) edit: we have had two different people (...
by kevin
Thu Mar 29, 2012 7:45 pm
Forum: Bug Reports & Feature Requests
Topic: HOWTO: Enable Creating Core Dumps in Linux for GDB
Replies: 0
Views: 2268

HOWTO: Enable Creating Core Dumps in Linux for GDB

Hi all, When reporting bugs, especially from SVN revisions that you build yourself, it is very important to include core dumps to help us determine how and where POL crashes. Not all environments are set up to create core dumps by default, so here's a small tutorial on how to make those dumps happen...
by kevin
Thu Mar 29, 2012 3:59 pm
Forum: Bug Reports & Feature Requests
Topic: pol099 rev 525 keeps crashing
Replies: 22
Views: 4740

Re: pol099 rev 525 keeps crashing

So, i pinpointed the moment where any existing iterators would be invalidated by adding if (hash.size() >= hash.bucket_count() * hash.max_load_factor()) { cout<<"HASH ITERATOR INVALIDATED ("<<hash.size()<<" >= B = "<<hash.bucket_count()<<" * z = "<<hash.max_load_factor()<<endl; flush(cout); invalida...
by kevin
Thu Mar 29, 2012 2:48 pm
Forum: Bug Reports & Feature Requests
Topic: pol099 rev 525 keeps crashing
Replies: 22
Views: 4740

Re: pol099 rev 525 keeps crashing

Sure. It's pretty simple. Could probably combine the two... // crash.src program crash() var i; for (i := 0; 1; i := i+1) start_script("crash-createitem",i); endfor Unload_Scripts(); endprogram // crash-createitem.src use uo; program createitem(i) print("creating item "+i+": "+CreateItemAtLocation(0...
by kevin
Thu Mar 29, 2012 1:14 pm
Forum: Bug Reports & Feature Requests
Topic: pol099 rev 525 keeps crashing
Replies: 22
Views: 4740

Re: pol099 rev 525 keeps crashing

Sorry AsYlum. Yeah, that didn't seem to fix the error. Buuut I believe i have found the issue now. I was able to cause a consistent crash using a simple CreateItemAtLocation() loop that would always crash on the ++reap_iterator line after some time. Looking at the unordered_map<> docs for TR1 spec (...
by kevin
Mon Mar 26, 2012 10:01 am
Forum: Bug Reports & Feature Requests
Topic: pol099 rev 525 keeps crashing
Replies: 22
Views: 4740

Re: pol099 rev 525 keeps crashing

Hi AsYlum, I talked with some C++ devs and they said: 13:45 <rizlah> kevin_: Generally speaking when you iterate you want to keep the iterator valid by assigning it the return value of the relevant .erase call So, I've done that on my shard and it's running now and I will be keeping track of any cra...
by kevin
Mon Mar 26, 2012 9:32 am
Forum: Bug Reports & Feature Requests
Topic: pol099 rev 525 keeps crashing
Replies: 22
Views: 4740

Re: pol099 rev 525 keeps crashing

I'm having the exact same issue. Problem with the object reaper thread. My stack trace is pretty much the same thing.. Line numbers in objecthash.cpp are different because i tried to do some debugging/fixing to no avail. Thread [8] 5488 [core: 0] (Suspended : Signal : SIGSEGV:Segmentation fault) std...
by kevin
Tue Dec 27, 2011 8:14 pm
Forum: Bug Reports & Feature Requests
Topic: Compiler error: success on binary + with single value
Replies: 0
Views: 1320

Compiler error: success on binary + with single value

This successfully compiles (and shouldnt): program p() f(1,2+,3); endprogram function f(a, b, c) endfunction With listfile: test.src, Line 130 program p() f(1,2+,3); 0: 3L 1: 3L 2: makelocal 3: jmp userfunc @6 4: # 5: progend test.src, Line 132 function f(a, b, c) 6: pop param 'c' 7: pop param 'b' 8...
by kevin
Sat Nov 26, 2011 9:35 pm
Forum: Bug Reports & Feature Requests
Topic: vendor buy window and shopping_cart/bought container
Replies: 0
Views: 1214

vendor buy window and shopping_cart/bought container

vendor buy window shows contents for both the for_sale/inventory container as well as the shopping_cart/bought container. however, you can only purchase items from the for_sale/inventory container, as the "buy items" packet skips any items that the client requests to buy but is not in the for_sale c...
by kevin
Fri Aug 26, 2011 5:43 pm
Forum: Scripting Help
Topic: byref keyword
Replies: 4
Views: 1071

Re: byref keyword

it is not useless for object references. program script(attacker,defender) print("A: "+attacker+" D: "+defender); swap(attacker,defender); print("A: "+attacker+" D: "+defender); // Variables are swapped. endprogram function swap(byreference a, byreference b) var temp = a; a = b; b = temp; endfunctio...
by kevin
Thu Jan 06, 2011 11:37 pm
Forum: Current stable release (099)
Topic: Core bug with pcequip.txt and equipscripts that create items
Replies: 5
Views: 1198

Re: Core bug with pcequip.txt and equipscripts that create i

Ah, that's great! I'll just make it so the boots won't create the mount on startup, and players will just have to re-equip the boots on login for simplicity purposes.

Thanks!
by kevin
Thu Jan 06, 2011 6:05 pm
Forum: Current stable release (099)
Topic: Core bug with pcequip.txt and equipscripts that create items
Replies: 5
Views: 1198

Re: Core bug with pcequip.txt and equipscripts that create i

Is there a way to defer the EquipScript until after the server completely loads? If you set IgnoreLoadErrors=1 in pol.cfg, it'll just use the first found serial number, it'll just vanish, and if the second item is something pretty good in the game that'll suck for the player.
by kevin
Thu Jan 06, 2011 5:40 pm
Forum: Current stable release (099)
Topic: Core bug with pcequip.txt and equipscripts that create items
Replies: 5
Views: 1198

Core bug with pcequip.txt and equipscripts that create items

Hi everybody... We have an equippable item that has an OnEquipScript that creates a NEW item and also equips that (boots that create a mount and equips it on the character) . When the boots create-and-equip the brand new mount, the LAYER_MOUNT is now occupied for that character. Then, further down i...
by kevin
Sun Dec 26, 2010 3:51 pm
Forum: General Help (095)
Topic: when you start the server generates an error
Replies: 2
Views: 1270

Re: when you start the server generates an error

make sure you have your attributes defined in attributes.cfg
by kevin
Thu Dec 16, 2010 9:17 am
Forum: Current stable release (099)
Topic: Compiling POL...
Replies: 8
Views: 2065

Re: Compiling POL...

I was able to compile POL fine in Microsoft Visual Studio 2005 Express Edition as well as under Ubuntu Linux with gcc 4.4 with no modifications to the source code.
by kevin
Sat Dec 11, 2010 10:29 pm
Forum: Scripting Help
Topic: RepSys (I'd like more info on it)
Replies: 3
Views: 800

Re: RepSys (I'd like more info on it)

RepSys is the reputation system. basically, it handles the criminal and murderer details behind-the-scenes. also determines which color people's names are when single-clicked or highlight color when hovered over with a target.
by kevin
Sat Dec 11, 2010 10:25 pm
Forum: General Help (095)
Topic: Can you rename stuff pre-creation with GetItemDescriptor()?
Replies: 2
Views: 1251

Re: Can you rename stuff pre-creation with GetItemDescriptor

not in pol095. it was a bug fixed in pol099. from core-changes.txt:
06-27-2009 Turley:
Fixed: Item creation with ItemDescriptor can now override .Desc
by kevin
Tue Dec 07, 2010 12:46 pm
Forum: Scripting Help
Topic: Lumberjacking and mining
Replies: 1
Views: 691

Re: Lumberjacking and mining

Do you use target() and check if the graphic of the target is one of a tree, or the object type? Use TargetCoordinates(), then check the resulting value's objtype. You can't Target() a maptile, you will get "What you selected does not seem to exist." That requires a big list of graphics/object type...
by kevin
Thu Nov 25, 2010 7:44 pm
Forum: Current stable release (099)
Topic: Renaming an item but keeping the 'a'/'an' article in front
Replies: 1
Views: 891

Renaming an item but keeping the 'a'/'an' article in front

Hey guys. So, I noticed that if you rename an item using SetName(), you lose the functionality that single items get prefixed with 'a'/'an' and stacked items remove the 'a'/'an' but get pluralized, eg "a nightsight potion" => "2 nightsight potions". It looks like there is no workaround script-wise. ...