Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Superslayer

Pages: 1 ... 3 4 [5] 6 7 ... 41
61
Well, for some reason, I hammered through the remaining commented functions, straightened out the remaining "end expected to close function at line **" errors, and all is well so far, minus what you are pointing out Dixie.

I must admit, I'm impressed and grateful for your 'jumping in' and helping with OEUO debugging for many script across this forum. I hope you remain on board with us here at SUO, your input is, imo, invaluable!

By the way, your name reminds me of a Howard Stern bit! hehe.

Rep to you sir!

62
Running that function alone is indeed fine, with charslot assigned anything but nil. I'm finding that there's something else in the script body that's causing a ruckus. There's no way I'll consider posting the script anywhere, but to get an idea of what it is, check out my sig and look at what the WIT script is.

Anyhows.. the layout of my script is as follows:

Code: [Select]
function huh()
function what()
function where()
function SS_Var_Config()  <-- the one in question
function other()
function this()
function that()

EUO_Result=SS_Var_Config()

All the functions preceding the SS_Var_Config are NOT commented out. All the function following SS_VAR_Config ARE commented out. The issue is somewhere after the actual "function SS_Var_Config()" and before the "EUO_Result=SS_Var_Config()". ..but where I'm not sure yet.

63
Sure. This is the executing line:
Quote
EUO_Result=SS_Var_Config()

and the function to go with it:

Code: [Select]
function SS_Var_Config()
pause()
  Swait=5
  Mwait=10
  Lwait=15
  LLwait=25
  stock=nil
--   Root=C:\
  ScreenMountRefresh=false
  first_run=true
  IdocLib=nil
  EmptyIdocLib=nil
  homes_marked=0
  spellbook=MPF_ZMF
  HKVar= hotkey
  moongates=OTF_NTF_QTF_PTF_AUF_KEF_JEF_EEF_DEF_GEF_
--   Run_facet=
  MarkHomes=true
  first_mark=true
  Emptyrbooks=0
  Idocbooks=0
  homecnt=0
 --  housestatus=
  Idocsfound=0
  Grtlysfound=0
  laps=0
  doors=NJC_PJC_ZOC_XOC_XMC_ZMC_HQC_JQC_
  allmounts=HNO_GKM_YFO_NRM_ZNO_KJO_FJM_RJM_NNO_SJR_MJR_CG_JG_ZGB_SF_MG_SG_OF_EG_QC_KG_WJ_JJ_HMB_SH_TJ_UJ_SC_HH_YJ
  ethies=HNO_GKM_YFO_NRM_ZNO_KJO_FJM_RJM_NNO_SJR_MJR_CWO_MJR
  Corpsetype=YFM_FEX_QEX_
  wait_to_stock=nil
  EvenSlots='2_4_6_8_10_12_14_16_'
  regs=KUF_KZF_JUF_MZF_JZF_WZF_RZF_SZF_
  securetypes=CKF_UXM_TXM_AUD_CUD_HKF_SPF_GRL_FRL_KUD_LKF_HIF_IKF_VNF_PNF_ZJF_ELN_KIF_WMF_UMF_BUD_EIR_VMF_
  instrument=OQF_LQF_KRF_PRF_QRF_MQF_PGP_RPS_NRF_RGP_
  rscrolls=WTL
--   rbooklibrary=
  rnbkrechrglib=nil
  MSLrbook=nil
--  Lhealerlocs=
  healercnt=0
  shrinetypes=ZC_AD_TC_UC_
  Null_BPitems=FIM_AIM_ZHM_KDM_JDM_YDM_LDM_WDM_VDM_ODM_CIM_BIM_NDM_XDM_SDM_RDM_
  housesigns=AKE_ALE_ARE_AOE_CRE_CKE_COE_CLE_EKE_ERE_ELE_EOE_GNE_GRE_GLE_GOE_GKE_INE_ILE_IKE_IRE_IOE_KOE_KLE_KRE_KKE_MOE_MRE_MKE_MLE_MLK_OLE_ONE_OJE_OKE_QNE_QJE_QKE_QLE_SME_SLE_SNE_SJE_SKE_ULE_UKE_UNE_UJE_WJE_WNE_WKE_WLE_YJE_YNE_YLE_YKE_YQE_
  PrvtHm="This Is A Private Home"
  slot=100+( charslot*40)
  ParaCastingMobs=SKM_HIO_ZIO_YIO_JKM_VJM_LGO_GGO_IOO_QKM
  username='********'
  Bandaidtype=ZLF
  Lorable=RQM_CRM_BRM_YQM_ARM_CJO_BJO_EJO_AJO_UDY_XQM_GKM_ZQM_PKM_IJO_MKM_HKM_OKM_FKO_SFO_DRM_XPM_UQM_SQM_XJM_IKM_YPM_KKM_PQM_GQM_PIO_EQM_YPM_VJO_EIO_FKM_LGO_RIO_ERM_XFO_IGO_HGO_KGO_JGO_QFO_LKM_WPM_HIO_DKM_GIO_SKM_KOO_NKM_LJO_XOO_IOO_JIO_PRM_BKO_NRM_CKO_ENO_DNO_YMO_ZIM_VJM_JKM_FQM_GGO_FGO_QGO_PGO_SGO_RGO_MGO_GZ_MG_PG_QE_SF_BE0
--return
end 

64
Ya, same result, no go. Get some rest, I'm sure your head is about to explode

65
OEUO Tools/Utilities / Re: Trailmyx's EUO to OEUO Menu Conversion
« on: October 24, 2010, 05:55:16 PM »
Figured, no biggie.

As for color stuff, I notice that cream and btnface look like white, as well as lime green looks like green. I personally don't care, but if your converter script comes across an 'Inactivecaption' , best bet would probably set it to the color gray or btnface. Just an observation.

66
OEUO Tools/Utilities / Re: Trailmyx's EUO to OEUO Menu Conversion
« on: October 24, 2010, 05:40:41 PM »
I did go ahead and make a bunch of button handlers. Start, pause, load, etc..., using print to verify. I haven't associated an actual function/action to them, but I did notice that ifI were to press the "X" in the top right of the menu, near the minimize, maximize buttons, I do get another error. Can that be controled/associated with a created button like Quit or End script?

The error message says: lua:381: ERR_INVALIDOBJECT

I think it would be smart to associate that to a created 'quit script' button by the user and if possible, disable closing that ability if a button didn't exist. Or is that something inside of OEUO that Cheffe will eventually have to address?

67
OEUO Tools/Utilities / Re: Trailmyx's EUO to OEUO Menu Conversion
« on: October 24, 2010, 05:15:44 PM »
Ah, I see that, for some reason I had that in the original script and forgot to remove it. Commenting it out when running this menu converting script solved my issue. Thanks for this, and sorry for my incompetence :-[.

On another note, I did end up changing my arg for "InactiveCaption" to another color, green. Script didn't recognize that parameter. Also, I'm sure you're aware, "Image" is a function that euo used, not sure of the oeuo parallel, if there is one. I just removed it from my script.

68
OEUO Tools/Utilities / Re: Trailmyx's EUO to OEUO Menu Conversion
« on: October 24, 2010, 05:03:22 PM »
I did change the menu with what I posted above, but only took out an 'if' statement from it. My original menu consisted of 2 conditions and depending on that, a different menu was generated. Here's what I'm using now:

Code: [Select]
dofile("tm_menu_subs5.lua")
-------------------------------------
-- Your functions
-------------------------------------
function EUOButton1()
  print("holy crap, it ran!")
end
-------------------------------------
function EUOButtonExit()
  Obj.Exit()
end
-------------------------------------
-- Your main script
-------------------------------------

mf = MenuInfo:New()
mf:TM_MenuFunction("Sub SS_Menu") 
mf:TM_MenuFunction("menu Clear")
mf:TM_MenuFunction("menu Window Title TEST Running")
mf:TM_MenuFunction("menu Window Color Maroon")
mf:TM_MenuFunction("menu Window Size 420 230")
mf:TM_MenuFunction("menu Font Name MS Sans Serif")
mf:TM_MenuFunction("menu Font Size 8")
mf:TM_MenuFunction("menu Font BGColor Maroon")
mf:TM_MenuFunction("menu Shape Idoc_def_off_Outline 4 92 114 110 3 7 1 Black 7 Maroon")
mf:TM_MenuFunction("menu Shape TopOutline 4 4 413 84 3 7 1 Black 7 Maroon")
mf:TM_MenuFunction("menu Shape Script_Skill_Outline 172 8 241 73 3 7 1 Black 7 Maroon")
mf:TM_MenuFunction("menu Shape Control_Panel 8 8 53 76 3 7 1 Black 7 Maroon")
mf:TM_MenuFunction("menu Shape Checks_Outline 120 92 209 101 3 7 1 Black 7 Maroon")
mf:TM_MenuFunction("menu Shape Facet_Outline 4 206 413 22 3 7 1 Black 7 Maroon")
mf:TM_MenuFunction("menu Shape Skill_selection_box 310 12 97 21 3 7 1 Black 7 Green")
mf:TM_MenuFunction("menu Shape MTM 66 63 100 21 3 7 1 Black 7 Green")
mf:TM_MenuFunction("menu Shape Heal_selection_box 310 34 97 21 3 7 1 Black 7 Green")
mf:TM_MenuFunction("menu Font Transparent #true")
         
mf:TM_MenuFunction("menu text Hours")
mf:TM_MenuFunction("menu text Mins")
mf:TM_MenuFunction("menu text Homecount 55 182 HmCnt:")
mf:TM_MenuFunction("menu text Homecount_result 90 182 %homecnt")
mf:TM_MenuFunction("menu text Structure_Status 12 136 Current House Status:")
mf:TM_MenuFunction("menu text Structure_Status2 20 151 %housestatus")
mf:TM_MenuFunction("menu text Idocs_Found 12 166 Idoc's:")
mf:TM_MenuFunction("menu text Idocs_result 46 166 %Idocsfound")
mf:TM_MenuFunction("menu text Grtly_Found 62 166 Grtly's:")
mf:TM_MenuFunction("menu text Grtly_result 96 166 %Grtlysfound")
mf:TM_MenuFunction("menu text Laps 12 182 Laps:")
mf:TM_MenuFunction("menu text Lap_status 38 182 %laps")
mf:TM_MenuFunction("menu Text Script_Status 180 60 Script Status:")
mf:TM_MenuFunction("menu Text Status_result 245 60 Awaiting Start Button")
mf:TM_MenuFunction("menu Text And_Or 96 34 And/Or")
mf:TM_MenuFunction("menu Text Search 12 210 Search facets:")
                         
mf:TM_MenuFunction("menu Font Style u")
mf:TM_MenuFunction("menu Text Method_Travel_Text 74 6 Method of Travel")
mf:TM_MenuFunction("menu Font Name Book Antiqua")
mf:TM_MenuFunction("menu Font Style i")
mf:TM_MenuFunction("menu font color white")
mf:TM_MenuFunction("menu font bgcolor black")
mf:TM_MenuFunction("menu font bgcolor maroon")
mf:TM_MenuFunction("menu font color black")
mf:TM_MenuFunction("menu Font Style")
mf:TM_MenuFunction("menu Font Align Right")
mf:TM_MenuFunction("menu Font Name MS Sans Serif")
mf:TM_MenuFunction("menu Check IslandCheck 125 96 97 13 #false Go To Islands ?")
mf:TM_MenuFunction("menu Check DeadCheck 125 116 97 13 #false Stay Dead ?")
mf:TM_MenuFunction("menu Check RunFlyCheck 125 136 97 13 #false Run/Fly ?")
mf:TM_MenuFunction("menu Check BoatCheck 125 156 97 13 #false Use a Boat ?")
mf:TM_MenuFunction("menu Check HRCheck 125 176 97 13 #false Home Roam ?")
mf:TM_MenuFunction("menu Check LoopScriptCheck 236 96 88 13 #false Loop Script ?")
mf:TM_MenuFunction("menu Check ChivalryCheck 80 19 65 17 #false Chivalry")
mf:TM_MenuFunction("menu Check Magery_Check 80 45 65 17 #false Magery")
mf:TM_MenuFunction("menu Check Skill_Check 180 16 95 13 #false Use a skill ?")
mf:TM_MenuFunction("menu Check Home 236 116 88 13 #false Home Secure")
mf:TM_MenuFunction("menu Check Bank 236 136 88 13 #false Bank Secure")
mf:TM_MenuFunction("menu Check Go_to_MSL 236 156 88 13 #false Go to MSL's")
mf:TM_MenuFunction("menu Check Make_MSL 236 176 88 13 #false Make MSL's")
mf:TM_MenuFunction("menu Check Heal_Check 180 35 95 13 #false Heal Method ?")
mf:TM_MenuFunction("menu Check Fel_Check 95 210 65 13 #false Felucca")
mf:TM_MenuFunction("menu Check Tram_Check 165 210 60 13 #false Trammel")
mf:TM_MenuFunction("menu Check Malas_Check 230 210 50 13 #false Malas")
mf:TM_MenuFunction("menu Check Tok_Check 285 210 60 13 #false Tokuno")
mf:TM_MenuFunction("menu Check TerM_Check 350 210 58 13 #false Ter Mer")
mf:TM_MenuFunction("menu Font Color White")
mf:TM_MenuFunction("menu Font BGColor Black")
mf:TM_MenuFunction("menu Button Erase_Log 12 118 100 18 Erase House File")
mf:TM_MenuFunction("menu Button Start_Button 12 12 45 21 Start")
mf:TM_MenuFunction("menu Button Pause_Button 12 36 45 21 Pause")
mf:TM_MenuFunction("menu Button Quit_Button 12 60 45 21 Quit")
mf:TM_MenuFunction("menu Button Load_Button 334 116 82 22 Load Profile")
mf:TM_MenuFunction("menu Button Save_Button 334 92 82 22 Save Profile")
mf:TM_MenuFunction("menu Button Reset_Button 334 140 82 22 Reset Profile")
mf:TM_MenuFunction("menu Edit Username 12 96 99 %username")
mf:TM_MenuFunction("menu Font Align left")
mf:TM_MenuFunction("menu Show 275 675")
mf:TM_MenuFunction("set #menubutton N/A")
mf:TM_MenuFunction("Return")   
Obj.Loop()
Obj.Free(mf.EUOMenu)

69
I've tried loads of stuff. since that first function passes and returns no parameters, I removed the ... in the parentheses, changed the function name, moved it to other parts of the script, skipping that function and trying to run a different one but with the same results.

70
OEUO Tools/Utilities / Re: Trailmyx's EUO to OEUO Menu Conversion
« on: October 24, 2010, 04:45:35 PM »
Gotchya, didn't realize the whole sub was needed. After the conversion, I get the following error when doing the text part:

lua:136 ERR_WRONGPAR

Commenting my menu text block out, the script continues just fine and creates the menu.

71
OEUO Tools/Utilities / Re: Trailmyx's EUO to OEUO Menu Conversion
« on: October 24, 2010, 04:09:22 PM »
error:
tm_menu_subs5.lua:78: attempt to index field 'EUOMenu' (a nil value)

Code: [Select]
dofile("tm_menu_subs5.lua")
-------------------------------------
-- Your functions
-------------------------------------
function EUOButton1()
  print("holy crap, it ran!")
end
-------------------------------------
function EUOButtonExit()
  Obj.Exit()
end
-------------------------------------
-- Your main script
-------------------------------------

mf = MenuInfo:New()
mf:TM_MenuFunction("menu Clear")
mf:TM_MenuFunction("menu Window Title test")  -- error occurs in this function
pause()
mf:TM_MenuFunction("menu Window Color Maroon")
mf:TM_MenuFunction("menu Window Size 420 230")
mf:TM_MenuFunction("menu Font Name MS Sans Serif")
mf:TM_MenuFunction("menu Font Size 8")
mf:TM_MenuFunction("menu Font BGColor Maroon")
mf:TM_MenuFunction("menu Shape Idoc_def_off_Outline 4 92 114 110 3 7 1 Black 7 Maroon")
mf:TM_MenuFunction("menu Shape TopOutline 4 4 413 84 3 7 1 Black 7 Maroon")
mf:TM_MenuFunction("menu Shape Script_Skill_Outline 172 8 241 73 3 7 1 Black 7 Maroon")
mf:TM_MenuFunction("menu Shape Control_Panel 8 8 53 76 3 7 1 Black 7 Maroon")
mf:TM_MenuFunction("menu Shape Checks_Outline 120 92 209 101 3 7 1 Black 7 Maroon")
mf:TM_MenuFunction("menu Shape Facet_Outline 4 206 413 22 3 7 1 Black 7 Maroon")
mf:TM_MenuFunction("menu Shape Skill_selection_box 310 12 97 21 3 7 1 Black 7 InactiveCaption")
mf:TM_MenuFunction("menu Shape MTM 66 63 100 21 3 7 1 Black 7 InactiveCaption")
mf:TM_MenuFunction("menu Shape Heal_selection_box 310 34 97 21 3 7 1 Black 7 InactiveCaption")
mf:TM_MenuFunction("menu Font Transparent #true")
mf:TM_MenuFunction("menu text _Hours")
mf:TM_MenuFunction("menu text _Mins")
mf:TM_MenuFunction("menu text Homecount 55 182 HmCnt:")
mf:TM_MenuFunction("menu text Homecount_result 90 182 %homecnt")
mf:TM_MenuFunction("menu text Structure_Status 12 136 Current House Status:")
mf:TM_MenuFunction("menu text Structure_Status2 20 151 %housestatus")
mf:TM_MenuFunction("menu text Idocs_Found 12 166 Idoc's:")
mf:TM_MenuFunction("menu text Idocs_result 46 166 %Idocsfound")
mf:TM_MenuFunction("menu text Grtly_Found 62 166 Grtly's:")
mf:TM_MenuFunction("menu text Grtly_result 96 166 %Grtlysfound")
mf:TM_MenuFunction("menu text Laps 12 182 Laps:")
mf:TM_MenuFunction("menu text Lap_status 38 182 %laps")
mf:TM_MenuFunction("menu Text Script_Status 180 60 Script Status:")
mf:TM_MenuFunction("menu Text Status_result 245 60 Awaiting Start Button")
mf:TM_MenuFunction("menu Text And_Or 96 34 And/Or")
mf:TM_MenuFunction("menu Text Search 12 210 Search facets:")
mf:TM_MenuFunction("menu Font Style u")
mf:TM_MenuFunction("menu Text Method_Travel_Text 74 6 Method of Travel")
mf:TM_MenuFunction("menu Font Name Book Antiqua")
mf:TM_MenuFunction("menu Font Style i")
mf:TM_MenuFunction("menu font color white")
mf:TM_MenuFunction("menu font bgcolor black")
mf:TM_MenuFunction("menu font bgcolor maroon")
mf:TM_MenuFunction("menu font color black")
mf:TM_MenuFunction("menu Font Style ; turns off italic")
mf:TM_MenuFunction("menu Font Align Right")
mf:TM_MenuFunction("menu Font Name MS Sans Serif")
mf:TM_MenuFunction("menu Check IslandCheck 125 96 97 13 #false Go To Islands ?")
mf:TM_MenuFunction("menu Check DeadCheck 125 116 97 13 #false Stay Dead ?")
mf:TM_MenuFunction("menu Check RunFlyCheck 125 136 97 13 #false Run/Fly ?")
mf:TM_MenuFunction("menu Check BoatCheck 125 156 97 13 #false Use a Boat ?")
mf:TM_MenuFunction("menu Check HRCheck 125 176 97 13 #false Home Roam ?")
mf:TM_MenuFunction("menu Check LoopScriptCheck 236 96 88 13 #false Loop Script ?")
mf:TM_MenuFunction("menu Check ChivalryCheck 80 19 65 17 #false Chivalry")
mf:TM_MenuFunction("menu Check Magery_Check 80 45 65 17 #false Magery")
mf:TM_MenuFunction("menu Check Skill_Check 180 16 95 13 #false Use a skill ?")
mf:TM_MenuFunction("menu Check Home 236 116 88 13 #false Home Secure")
mf:TM_MenuFunction("menu Check Bank 236 136 88 13 #false Bank Secure")
mf:TM_MenuFunction("menu Check Go_to_MSL 236 156 88 13 #false Go to MSL's")
mf:TM_MenuFunction("menu Check Make_MSL 236 176 88 13 #false Make MSL's")
mf:TM_MenuFunction("menu Check Heal_Check 180 35 95 13 #false Heal Method ?")
mf:TM_MenuFunction("menu Check Fel_Check 95 210 65 13 #false Felucca")
mf:TM_MenuFunction("menu Check Tram_Check 165 210 60 13 #false Trammel")
mf:TM_MenuFunction("menu Check Malas_Check 230 210 50 13 #false Malas")
mf:TM_MenuFunction("menu Check Tok_Check 285 210 60 13 #false Tokuno")
mf:TM_MenuFunction("menu Check TerM_Check 350 210 58 13 #false Ter Mer")
mf:TM_MenuFunction("menu Font Color White")
mf:TM_MenuFunction("menu Font BGColor Black")
mf:TM_MenuFunction("menu Button Erase_Log 12 118 100 18 Erase House File")
mf:TM_MenuFunction("menu Button Start_Button 12 12 45 21 Start")
mf:TM_MenuFunction("menu Button Pause_Button 12 36 45 21 Pause")
mf:TM_MenuFunction("menu Button Quit_Button 12 60 45 21 Quit")
mf:TM_MenuFunction("menu Button Load_Button 334 116 82 22 Load Profile")
mf:TM_MenuFunction("menu Button Save_Button 334 92 82 22 Save Profile")
mf:TM_MenuFunction("menu Button Reset_Button 334 140 82 22 Reset Profile")
mf:TM_MenuFunction("menu Edit Username 12 96 99 %username")
mf:TM_MenuFunction("menu Font Align left")
mf:TM_MenuFunction("menu Show 275 675")


Obj.Loop()
Obj.Free(mf.EUOMenu)

72
OEUO Tools/Utilities / Re: Trailmyx's EUO to OEUO Menu Conversion
« on: October 24, 2010, 03:35:53 PM »
Ack! Lime green ! :o

..continues to try out with burnt eye-balls!

73
Odd issue, but probably me, after the script was converted, and I straightened out all the hanging errors, I was unable to run the first function.  All function definitions are open and more-or-less ready, no libraries to load needed.  When I get to the line with the function to execute, the error says:"attempt to call global 'SS_Var_Config' (a nil value)"

This line reads:
Quote
EUO_Result=SS_Var_Config(...)
the function reads:
Quote
function SS_Var_Config(...)

Running the function alone in a separate tab works just fine.

74
OEUO Tools/Utilities / Re: Trailmyx's EUO to OEUO Menu Conversion
« on: October 24, 2010, 04:53:56 AM »
Busy?

Error: tm_subs_v31.lua:49: bad argument #2 to 'remove' (number expected, got table)

The example code calls version 30, not version 31. :P

75
OK, I did some more testing and found that the script is moving too fast between entering the account/password and scanning the shards.  When it gets to the shard selection screen, it seems to click the down arrow very quickly, moving the top shard from my screen.  After pausing the script and manually moving back to the top, it immediately found it, and with the above edit for the clicks, it finished logging in the correct character on the correct shard.  I added a wait(500) as line 143, right after the repeat loop would end from being the shard selection screen, as I am thinking that the shard selection screen may be the active window, but the shard names may take just a fraction of a second longer to load, and the script is so fast, that slight delay is still too much? 

Awesome debugging work there Dixie! I had a hell of a time figuring out some other issues with this when it wasn't clicking and see'ing stuff correctly. It too turned out to be that the script was too dam fast. That 500 wait should be fine, and you could probably fine tune it slowly down to 250, if desired.

Creating clicks and double clicks is a little tricky since we don't that the 'd' parameter. We actually have to run the code twice with a wait in between for a double. However, just clicking in the client is a little 'off' as the client has to be the topmost/active window on the screen, otherwise, a single click will just just make the client window active, and not actually send a mouse click.

I'll continue to work on the shard scanning and update the script clicks as OEUO comes together.

Thanks again for the input with this script Dixie!

Pages: 1 ... 3 4 [5] 6 7 ... 41