| Author |
Message |
|
Helix
Ambassador
Joined: Wed Nov 12, 2008 8:57 am Posts: 3554 Location: Long Beach, CA
|
 EP we need a fix for your haggle
It still hangs TWX on getting the port report. TWX spikes the CPU at 50%-98% and hangs. It happens often but not everytime it is run.
H
_________________ Helix Do I really look like a guy with a plan? You know what I am? I'm a dog chasing cars. Lest we forget I had to ask myself WWSGD?
|
| Sun Jul 11, 2010 2:13 pm |
|
 |
|
ElderProphet
Commander
Joined: Tue Oct 07, 2003 2:00 am Posts: 1134 Location: Augusta, GA
|
 Re: EP we need a fix for your haggle
If the port's trading percentage is very low, then it isn't hanging, it's calculating. Can you confirm?
_________________ Claim to Fame: only guy to ever crack the TW haggle algorithm, and fig/shield/hold price formula, twice.
|
| Mon Jul 12, 2010 4:17 pm |
|
 |
|
Helix
Ambassador
Joined: Wed Nov 12, 2008 8:57 am Posts: 3554 Location: Long Beach, CA
|
 Re: EP we need a fix for your haggle
ElderProphet wrote: If the port's trading percentage is very low, then it isn't hanging, it's calculating. Can you confirm? Confirm, its hanging. I have left it go for 30 minutes a couple of times and it doesnt recover and it only happens when pulling the port report.
_________________ Helix Do I really look like a guy with a plan? You know what I am? I'm a dog chasing cars. Lest we forget I had to ask myself WWSGD?
|
| Mon Jul 12, 2010 6:06 pm |
|
 |
|
ElderProphet
Commander
Joined: Tue Oct 07, 2003 2:00 am Posts: 1134 Location: Augusta, GA
|
 Re: EP we need a fix for your haggle
Next time it happens, save me a screen shot. Off the top of my head, I expect that some portion of the port report is being aborted. Also, after getting the screen shot, do $st and give me a copy of the active triggers, and I should be able to narrow it down.
_________________ Claim to Fame: only guy to ever crack the TW haggle algorithm, and fig/shield/hold price formula, twice.
|
| Tue Jul 13, 2010 6:43 pm |
|
 |
|
Helix
Ambassador
Joined: Wed Nov 12, 2008 8:57 am Posts: 3554 Location: Long Beach, CA
|
 Re: EP we need a fix for your haggle
I can do the screen shot (It will show the script frozen at the Port) but it locks up TWX so no $st.
Settings: Haggle Options:00:00]:[6655] (?=Help)? : Q - Terminate script 1 - Haggle and Hold Off 2 - Worst Price Off 3 - MBBS Mode Off 4 - Planetary Trade % 100 5 - Blue Haggle On 6 - Swath Offer Capture On 7 - Haggle Toggle Active 8 - Suppress Menu on Load Off 9 - Query DB for Current Port Info ; - Continue I - Import Sector Parms From file W - Write Sector Parms to file X - eXit and write data to file
Will add the screen shot when it locks up
H
_________________ Helix Do I really look like a guy with a plan? You know what I am? I'm a dog chasing cars. Lest we forget I had to ask myself WWSGD?
|
| Tue Jul 13, 2010 9:12 pm |
|
 |
|
Helix
Ambassador
Joined: Wed Nov 12, 2008 8:57 am Posts: 3554 Location: Long Beach, CA
|
 Re: EP we need a fix for your haggle
Scolfax killed the game I was testing this in. Will try to run it again later today
_________________ Helix Do I really look like a guy with a plan? You know what I am? I'm a dog chasing cars. Lest we forget I had to ask myself WWSGD?
|
| Wed Jul 14, 2010 7:50 am |
|
 |
|
Singularity
Veteran Op
Joined: Thu Jun 02, 2005 2:00 am Posts: 5558 Location: USA
|
 Re: EP we need a fix for your haggle
It's the port line that contains the current date and time that does this. It appears connected to the initial stats bug I reported a few months back. If you do a series of stats, it tends to fix. Here is the block of code I use to load the haggle from within other scripts. It seems to fix this problem, at least for me. Code: # Load EP haggle send #42 waitFor "Trade Wars 2002 Global Commands" waitFor "Command [TL=" gosub :set_haggle gosub :set_best_price load $ep_haggle_file waitFor "<Computer deactivated>" waitFor "Ship " waitFor "Command [TL=" send "///@" waitFor "Average Interval Lag:" But yea, this is an area that needs fixed. It would also be good to get it updated for 2.05 so we can test the alpha release in actual games.
_________________ May the unholy fires of corbomite ignite deep within the depths of your soul...
1. TWGS server @ twgs.navhaz.com 2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads 3. Open IRC chat @ irc.freenode.net:6667 #twchan 4. Parrothead wrote: Jesus wouldn't Subspace Crawl.
*** SG memorial donations via paypal to: dpocky68@booinc.com
|
| Wed Jul 14, 2010 8:57 am |
|
 |
|
Helix
Ambassador
Joined: Wed Nov 12, 2008 8:57 am Posts: 3554 Location: Long Beach, CA
|
 Re: EP we need a fix for your haggle
Display planet? No (L)eave or (T)ake Product? [T] L Which product are you leaving? (1)Ore, (2)Org or (3)Equipment ? 1 How many holds of Fuel Ore do you want to leave ([250] on board) ? You unload the Fuel Ore from your ship.
Planet command (?=help) [D] Q
Blasting off from .
Command [TL=00:00:00]:[9915] (?=Help)? : P
<A> Attack this Port <N> Negotiate Planetary Trade Agreement <T> Trade at this Port <Q> Quit, nevermind
Enter your choice [T] ? T <Port>
Docking...
Commerce report for Sitting frozen at the 'for' Here is what was on the port when it happened, I was buying down fuel -=-=- Docking Log -=-=- . docked 4 minutes ago.
Items Status Trading % of max OnBoard ----- ------ ------- -------- ------- Fuel Ore Selling 13068 19% 250 Organics Selling 929 7% 0 Equipment Selling 397 3% 0
You don't have anything they want, and they don't have anything you can buy.
You have 1,597,428 credits and 0 empty cargo holds.
Command [TL=00:00:00]:[9915] (?=Help)? :
_________________ Helix Do I really look like a guy with a plan? You know what I am? I'm a dog chasing cars. Lest we forget I had to ask myself WWSGD?
|
| Thu Jul 15, 2010 6:17 am |
|
 |
|
ElderProphet
Commander
Joined: Tue Oct 07, 2003 2:00 am Posts: 1134 Location: Augusta, GA
|
 Re: EP we need a fix for your haggle
Thanks Helix. Please post any other screen shots here as well. That one doesn't help much, and it's hard for me to see how the haggle alone could cause it to hang at that particular point, but another screen shot may reveal more. I'd like to know what other scripts are active, and a complete dump of the active triggers ($st*) if you can get it. I'm pretty sure that this is going to come down to some interaction between multiple scripts.
_________________ Claim to Fame: only guy to ever crack the TW haggle algorithm, and fig/shield/hold price formula, twice.
|
| Mon Jul 19, 2010 11:22 pm |
|
 |
|
Helix
Ambassador
Joined: Wed Nov 12, 2008 8:57 am Posts: 3554 Location: Long Beach, CA
|
 Re: EP we need a fix for your haggle
I am running mombot 3.1032 and 2_worldtrade using your haggle include this is when it occurs the most. Talk to Sing about about it. I know I cant be the only person this is happening with.
If you think its hanging, waiting for a trigger from some other script, no way. We are talking about TWX using 50%-98% of the CPU when this happens, its not just sitting there waiting. And its not stuck calculating a low percentage port.
H
_________________ Helix Do I really look like a guy with a plan? You know what I am? I'm a dog chasing cars. Lest we forget I had to ask myself WWSGD?
|
| Tue Jul 20, 2010 6:53 am |
|
 |
|
Singularity
Veteran Op
Joined: Thu Jun 02, 2005 2:00 am Posts: 5558 Location: USA
|
 Re: EP we need a fix for your haggle
I still think it's connected to the slash stats issue. Try adding several slashes before calling the script and see if it helps. See above for details.
_________________ May the unholy fires of corbomite ignite deep within the depths of your soul...
1. TWGS server @ twgs.navhaz.com 2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads 3. Open IRC chat @ irc.freenode.net:6667 #twchan 4. Parrothead wrote: Jesus wouldn't Subspace Crawl.
*** SG memorial donations via paypal to: dpocky68@booinc.com
|
| Tue Jul 20, 2010 10:54 am |
|
 |
|
Helix
Ambassador
Joined: Wed Nov 12, 2008 8:57 am Posts: 3554 Location: Long Beach, CA
|
 Re: EP we need a fix for your haggle
Thanks I will
Helix
_________________ Helix Do I really look like a guy with a plan? You know what I am? I'm a dog chasing cars. Lest we forget I had to ask myself WWSGD?
|
| Tue Jul 20, 2010 12:39 pm |
|
 |
|
Helix
Ambassador
Joined: Wed Nov 12, 2008 8:57 am Posts: 3554 Location: Long Beach, CA
|
 Re: EP we need a fix for your haggle
You have 50,001 fighters available. Your ship can support up to 50,000 Fighters, leaving 1 How many fighters do you want defending this sector? 1 Should these be (C)orporate fighters or (P)ersonal fighters? C Should they be (D)efensive, (O)ffensive or Charge a (T)oll ? D Done. You have 50,000 fighter(s) in close support.
Command [TL=00:00:00]:[6201] (?=Help)? :
Sect 6201³Turns 0³Creds 26,981,078³Figs 50,000³Shlds 2,000³Hlds 150³Ore 0 Org 150³Equ 0³Col 0³Phot 0³Armd 125³Lmpt 125³GTorp 9³TWarp 2³Clks 5 Beacns 150³AtmDt 4³Crbo 1,500³EPrb 25³MDis 10³PsPrb Yes³PlScn Yes³LRS Holo Aln 1,752³Exp 22,498³Corp 1³Ship 13 ImpSta
Command [TL=00:00:00]:[6201] (?=Help)? : P
<A> Attack this Port <T> Trade at this Port <Q> Quit, nevermind
Enter your choice [T] ? T <Port>
Docking...
Commerce report for Horok:
Attachments:
proxy..jpg [ 43.53 KiB | Viewed 8091 times ]
_________________ Helix Do I really look like a guy with a plan? You know what I am? I'm a dog chasing cars. Lest we forget I had to ask myself WWSGD?
|
| Wed Jul 21, 2010 3:34 pm |
|
 |
|
Parrothead
Commander
Joined: Wed May 03, 2006 2:00 am Posts: 1722 Location: USA
|
 Re: EP we need a fix for your haggle
I have had it screw up bad if the port % is set incorrectly so I set my bot to fill it in for me
_________________ Coconut Telegraph (ICQ)#586137616 Team Speak3@ 220.244.125.70:9987 Founding Member -=[Team Kraaken]=- Winner of Gridwars 2010 - Ka Pla
 Jesus wounldn't Subspace Crawl
|
| Fri Oct 08, 2010 9:41 pm |
|
 |
|