Wow thank you all the coders and scripters. Awesome!![]()
Wow thank you all the coders and scripters. Awesome!![]()
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
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.
trying the update now... but before it just hovered over the invtab.

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.

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)
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.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}
EDIT: the code above is in the includes, not plugin. Which is why they get rewritten every time SRL updates.

I don't think WorldInfo := [96,96]; works now, at least not for Flight's lividfarmer script.
Solar from RiD.
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.
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:
instead of what I had first:Code:{$DEFINE SMART} // This is how we include SMART {$DEFINE SMART8} // tell the system that we have smart 8
but now I still get one compile error:Code:{$DEFINE SMART} // This is how we include SMART
Is there something I'm missing to get rid of these compile errors after every SRL update?Code:[Error] C:\Simba\Includes\SRL/SRL/misc/paintsmart.simba(42:33): Unknown identifier 'SmartGetDebugDC' at line 41 Compiling failed.
because Now everytime I have to replace this
with this:Code:SMART_Canvas.canvas.handle := SmartGetDebugDC;
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
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
Red & Green Salamander Hunter // Construction // Gilded Altar // Major help w/ Kyles Runespan // VWB Smither // PhoenixFeathers // GemCutter // Bonfire // LRC Miner // Spell Tab Maker // ApeAtollAgility // IvyWC // RoguesCooker // Herblore // AshamanButterfly // AshamanPowerMiner // Fletcher // LividFarm
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?
Freaked out a little after one week of inactivty to come back and see some functions were not workingWill 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.
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.
There are currently 2 users browsing this thread. (0 members and 2 guests)