Page 2 of 2 FirstFirst 12
Results 26 to 49 of 49

Thread: Not detecting Lobby

  1. #26
    Join Date
    Nov 2011
    Location
    root@fsociety:~#
    Posts
    106
    Mentioned
    1 Post(s)
    Quoted
    44 Post(s)

    Default

    Wow thank you all the coders and scripters. Awesome!

  2. #27
    Join Date
    Jun 2012
    Location
    THE Students-City of Holland
    Posts
    332
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    for some reason it can't see wheter i'm in a gametab or not
    Former Name: MasterCrimeZ.
    ToDo: 1. Finish my private bot 2. Make some cool bots for this community 3. Become a member
    If you have any questions about scripting, feel free to PM me

  3. #28
    Join Date
    Jul 2012
    Location
    London
    Posts
    1,549
    Mentioned
    0 Post(s)
    Quoted
    86 Post(s)

    Default

    Quote Originally Posted by Master BAW View Post
    for some reason it can't see wheter i'm in a gametab or not
    Update your SRL

  4. #29
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    Do my dtm's need to be updated? It can't find any now.

    E: Updated my dtm's but it still won't find them. (they are in the magic tab)
    Last edited by Ian; 10-24-2012 at 07:37 PM.

  5. #30
    Join Date
    Oct 2011
    Location
    Australia, Vic
    Posts
    1,517
    Mentioned
    2 Post(s)
    Quoted
    120 Post(s)

    Default

    Quote Originally Posted by riwu View Post
    That's changing the algorithm slightly, and introducing tolerance to the function which i'm not sure if it's a good idea. Anyway try my attached file, everything should be fixed now, if it doesn't report it here.

    Also make sure you update your SRL to get the bank.simba fix. SRL>Check for updates. (Inb4 SmartParams error)
    You should be given some sort of developer/FixIt AI

  6. #31
    Join Date
    Sep 2012
    Location
    Legolan, Ireland
    Posts
    542
    Mentioned
    0 Post(s)
    Quoted
    50 Post(s)

    Default

    trying the update now... but before it just hovered over the invtab.

  7. #32
    Join Date
    Mar 2007
    Posts
    5,125
    Mentioned
    275 Post(s)
    Quoted
    901 Post(s)

    Default

    Quote Originally Posted by ___ View Post
    trying the update now... but before it just hovered over the invtab.
    Make sure you close and re-open Simba after the update



    Quote Originally Posted by riwu View Post
    ...
    (Inb4 SmartParams error)
    There is a {$DEFINE SMART8} function now, up to the scripters\users to define it if they are going to be using Smart 8 :P

    Forum account issues? Please send me a PM

  8. #33
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Quote Originally Posted by [J]ustin View Post
    There is a {$DEFINE SMART8} function now, up to the scripters\users to define it if they are going to be using Smart 8 :P
    It may have some compatibility issues with some other components. Right now i realize the ODTM include checks for {$DEFINE SMART} so there will be some conflicts if you define 8 instead.

    And even then you have to change every script to {$DEFINE SMART8}, and when smart upgrades (eg. to 9) you have to update your script, and worse, if the user is still using SMART 7 it won't work for them. So basically i think just removing the -1 every SRL update is simpler. Or don't use the autoupdater, get the updates from git directly.

    Btw seems like the fix is in the autoupdater now. Restart all Simba binaries after update.

  9. #34
    Join Date
    Mar 2007
    Posts
    5,125
    Mentioned
    275 Post(s)
    Quoted
    901 Post(s)

    Default

    Quote Originally Posted by riwu View Post
    It may have some compatibility issues with some other components. Right now i realize the ODTM include checks for {$DEFINE SMART} so there will be some conflicts if you define 8 instead.

    And even then you have to change every script to {$DEFINE SMART8}, and when smart upgrades (eg. to 9) you have to update your script, and worse, if the user is still using SMART 7 it won't work for them. So basically i think just removing the -1 every SRL update is simpler. Or don't use the autoupdater, get the updates from git directly.

    Btw seems like the fix is in the autoupdater now.
    Smart 7 will get over-written by Smart 8. I am sure there will be a function in smart.simba that will be checking for {$DEFINE SMART8} and will just ignore it and load the correct parameters

    E: Either way the devs know what they are doing and they will be able to push the updates out in the future without breaking much (as it has been in the past)

    Forum account issues? Please send me a PM

  10. #35
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Quote Originally Posted by [J]ustin View Post
    Smart 7 will get over-written by Smart 8. I am sure there will be a function in smart.simba that will be checking for {$DEFINE SMART8} and will just ignore it and load the correct parameters

    E: Either way the devs know what they are doing and they will be able to push the updates out in the future without breaking much (as it has been in the past)
    Simba Code:
    {$IFDEF SMART8}
      Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, 's', '', '');
      {$ELSE}
      Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, 's', '', '', -1);
      {$ENDIF}
    If you define 8, and the user is using 7, they will get a invalid param error instead. (and for the fact that they are still using 7 implies that you can't expect them to fix it themselves and they will come bug you on your thread) Anyway it's personal preference, up to the individual users to decide which way is better.

    EDIT: the code above is in the includes, not plugin. Which is why they get rewritten every time SRL updates.

  11. #36
    Join Date
    Mar 2007
    Posts
    5,125
    Mentioned
    275 Post(s)
    Quoted
    901 Post(s)

    Default

    Quote Originally Posted by riwu View Post
    Simba Code:
    {$IFDEF SMART8}
      Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, 's', '', '');
      {$ELSE}
      Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, 's', '', '', -1);
      {$ENDIF}
    If you define 8, and the user is using 7, they will get a invalid param error instead. Anyway it's personal preference, up to the individual users to decide which way is better.
    *facepalm*

    I understand what you are on about now

    I was thinking of something else


    Plugins weren't updates so why would they start to get invalid param errors now?

    Anyway, back on-topic now

    Forum account issues? Please send me a PM

  12. #37
    Join Date
    Feb 2012
    Location
    UK
    Posts
    909
    Mentioned
    10 Post(s)
    Quoted
    191 Post(s)

    Default

    I don't think WorldInfo := [96,96]; works now, at least not for Flight's lividfarmer script.
    Solar from RiD.

  13. #38
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Quote Originally Posted by Solar View Post
    I don't think WorldInfo := [96,96]; works now, at least not for Flight's lividfarmer script.
    What is your intention to have 2 same integers in the array? Also it should still work as before, index 0 is simply ignored when you have length higher than 1. I couldn't think of any way in which a script will be broken because of the fix. In fact iirc correctly it was the previous code that will give an error when you have 2 integers, since there will be a type mismatch error for the first index.

    Also i've just checked Flight's script, it doesn't even have WorldInfo defined?

  14. #39
    Join Date
    Feb 2012
    Location
    UK
    Posts
    909
    Mentioned
    10 Post(s)
    Quoted
    191 Post(s)

    Default

    Quote Originally Posted by riwu View Post
    What is your intention to have 2 same integers in the array? Also it should still work as before, index 0 is simply ignored when you have length higher than 1. I couldn't think of any way in which a script will be broken because of the fix. In fact iirc correctly it was the previous code that will give an error when you have 2 integers, since there will be a type mismatch error for the first index.

    Also i've just checked Flight's script, it doesn't even have WorldInfo defined?
    The version I am using is the one that Ashaman altered slightly. When I saw that 96 was in the array twice I did wonder why, but simply ignored it since it seemed to work.
    I'll try it again, but when I used it this morning it didn't choose 96.

    Edit: Okay, so I just tried it while already logged into the lobby, and it worked. Not sure what happened, although there was an SRL update inbetween when it didn't work and when I just tried it now.
    Solar from RiD.

  15. #40
    Join Date
    Jun 2012
    Location
    THE Students-City of Holland
    Posts
    332
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    I've a question about this SMART 8 thing. I have SMART 8 installed a month ago, but every time I updated SRL I got a SRL compile error in SmartParams and in paintsmart.

    now I started the script with this:
    Code:
      {$DEFINE SMART} // This is how we include SMART
      {$DEFINE SMART8} // tell the system that we have smart 8
    instead of what I had first:
    Code:
    {$DEFINE SMART} // This is how we include SMART
    but now I still get one compile error:
    Code:
    [Error] C:\Simba\Includes\SRL/SRL/misc/paintsmart.simba(42:33): Unknown identifier 'SmartGetDebugDC' at line 41
    Compiling failed.
    Is there something I'm missing to get rid of these compile errors after every SRL update?

    because Now everytime I have to replace this
    Code:
    SMART_Canvas.canvas.handle := SmartGetDebugDC;
    with this:
    Code:
    SMART_Canvas.canvas.handle := 0;
    Former Name: MasterCrimeZ.
    ToDo: 1. Finish my private bot 2. Make some cool bots for this community 3. Become a member
    If you have any questions about scripting, feel free to PM me

  16. #41
    Join Date
    Dec 2011
    Location
    Hyrule
    Posts
    8,662
    Mentioned
    179 Post(s)
    Quoted
    1870 Post(s)

    Default

    I always try to have two world choices but for that one I just left them both 96. And yeah it was just that riwu's fix hadn't hit the servers yet

  17. #42
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Quote Originally Posted by Master BAW View Post
    I've a question about this SMART 8 thing. I have SMART 8 installed a month ago, but every time I updated SRL I got a SRL compile error in SmartParams and in paintsmart.

    now I started the script with this:
    Code:
      {$DEFINE SMART} // This is how we include SMART
      {$DEFINE SMART8} // tell the system that we have smart 8
    instead of what I had first:
    Code:
    {$DEFINE SMART} // This is how we include SMART
    but now I still get one compile error:
    Code:
    [Error] C:\Simba\Includes\SRL/SRL/misc/paintsmart.simba(42:33): Unknown identifier 'SmartGetDebugDC' at line 41
    Compiling failed.
    Is there something I'm missing to get rid of these compile errors after every SRL update?

    because Now everytime I have to replace this
    Code:
    SMART_Canvas.canvas.handle := SmartGetDebugDC;
    with this:
    Code:
    SMART_Canvas.canvas.handle := 0;
    Change that paintsmart to
    {$I SRL/SRL/Misc/SmartGraphics.Simba}
    If you have any problem related to SMART either search them and try resolve it or just remove them (it may break the paint but won't break the script)

  18. #43
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    Anyone know if InvCount works in browsers? I have a part like this:
    Simba Code:
    If InvCount=PlusOne Then
            WriteLn('Digging...');
          Until(InvCount=PlusOne) Or (TimeFromMark(OreCounter) > 4000)

    To check if the rock has been mined but when I was using it in the browser (not SMART), It was always waiting for the marktime fallback even if it mined the ore. I know the code is right because I have not changed anything and it worked earlier, but in a smart window not the browser.

    So to recap: Does InvCounting work in browsers since the gametab update?
    Also detection for the rocks was much slower than with smart. Any ideas?

  19. #44
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Quote Originally Posted by BMWxi View Post
    Anyone know if InvCount works in browsers? I have a part like this:
    Simba Code:
    If InvCount=PlusOne Then
            WriteLn('Digging...');
          Until(InvCount=PlusOne) Or (TimeFromMark(OreCounter) > 4000)

    To check if the rock has been mined but when I was using it in the browser (not SMART), It was always waiting for the marktime fallback even if it mined the ore. I know the code is right because I have not changed anything and it worked earlier, but in a smart window not the browser.

    So to recap: Does InvCounting work in browsers since the gametab update?
    Also detection for the rocks was much slower than with smart. Any ideas?

    There should be no difference between botting with Smart or with browser.

    The code doesn't make sense to me though, on the if check your debug says it's still digging, but on the until check you break the loop. Can you post the whole routine?

  20. #45
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    Quote Originally Posted by riwu View Post
    There should be no difference between botting with Smart or with browser.

    The code doesn't make sense to me though, can you post the whole routine?
    I don't know if I am allowed, it is for the Jr Member copmpetition. Maybe I'll censor out some non relevant code.

    Actually could I PM it to you if you're not a judge?

  21. #46
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Quote Originally Posted by BMWxi View Post
    I don't know if I am allowed, it is for the Jr Member copmpetition. Maybe I'll censor out some non relevant code.

    Actually could I PM it to you if you're not a judge?
    Oh ok, i'm not a judge but i'm probably not supposed to help too much either. You can pm me and if there's error i'll point it out but i can't give you suggestion/fix.

  22. #47
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    Quote Originally Posted by riwu View Post
    Oh ok, i'm not a judge but i'm probably not supposed to help too much either. You can pm me and if there's error i'll point it out but i can't give you suggestion/fix.
    Ok, don't tell me how to fix it if the problem is on my end, just if it's a problem with using a browser/the gametab update.

    E: Riwu couldn't see why it wouldn't work so I'll just try with smart later.
    Last edited by Ian; 10-27-2012 at 02:38 AM.

  23. #48
    Join Date
    Jan 2012
    Posts
    369
    Mentioned
    6 Post(s)
    Quoted
    91 Post(s)

    Default

    Freaked out a little after one week of inactivty to come back and see some functions were not working Will be testing this thing out.

    Ok updated :

    Bug :

    "LoadWorldArrays: Could not load world arrays, attempting to rewrite Worlds.INI
    NOTE: Attempting to update the Worlds.INI, please allow the script to access this file.
    Skipping world "1" because explosion didn't return enough values
    Parsed Worlds Page into Worlds.INI. Took 422 ms.
    ** Warning in FindWorld: World -1 does not exist in worlds.ini **
    Failed to find World -1!"

    Using : Players[0].WorldInfo := [True, -1, False];


    Worlds.ini :

    [Worlds]
    Count=1
    High=0

    [World0]
    Type=Free
    LootShare=False
    QuickChat=False
    PvP=False


    Simba/Srl Doesn't parse the worlds.ini file...
    Last edited by speedster; 10-27-2012 at 02:21 PM.

  24. #49
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    I just tested the same thing as my earlier post but with smart this time, not the browser, and everything works. For some reason using the browser made it detect rocks really slowly and not count inventory.

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •