Page 1 of 2 12 LastLast
Results 1 to 25 of 28

Thread: [First Script] Lama's Edgeville Dougher!

  1. #1
    Join Date
    Feb 2013
    Location
    The Boonies
    Posts
    203
    Mentioned
    9 Post(s)
    Quoted
    70 Post(s)

    Default [First Script] Lama's Edgeville Dougher!

    Lama's Edgeville Dougher v1.1!
    Turns Pots of Flour into Pastry Dough for profit

    FEATURES:
    • Presets
    • SRL Player Form
    • Painted Progress Report
    • Define Loads
    • See profit and profit per hour in real time!
    • Currently effectively makes up to 400k profit per hour!


    SETUP:
    1. Place character in Edgeville bank (near counters)
    2. Setup whichever preset (defined in the Player Form) with 14 pots of flour
    3. Have pots of flour in your 10th bank slot
    4. Make sure your client is setup properly (go here, and look at "Setting up in-game graphics and interfaces")
    5. Hit RUN
    6. Fill out information in the form (make sure bank preset matches what you set in game)
    7. Hit 'Start Script'


    SRL Player Form
    Attachment 24157

    Banking
    Attachment 24158


    KNOWN ISSUES:
    • Too many TPA arrays, doesn't affect performance, just inefficient probably... how to truncate after first 4 or 5?
    • Progress Image not going transparent near bottom (where it fades to black, not script breaking)
    • Super rarely doesn't make it within eyesight of a banker (silly SPS, script breaking) } Failsafes now implemented in 1.1!
    • Superer rarely skips waiting to get to well before proceeding with script... for no reason (script breaking)


    TO DO:
    • Make that painted report image fade to transparent near bottom (advice?)
    • Failsafes for getting back to bank (advice?)


    SUPER SPECIAL THANKS TO:
    ~ The Mayor, he pretty much taught me everything (by Skype, and by his tutorials) THANK YOU!

    DOWNLOAD:
    Attachment 24174 <--- most up to date, don't click the one below this line (how do I work this forum)
    Last edited by Lama; 10-08-2014 at 02:30 AM.

  2. #2
    Join Date
    Sep 2014
    Posts
    45
    Mentioned
    1 Post(s)
    Quoted
    23 Post(s)

    Default

    Can't run, get this:

    'NOTIFICATION: Paint image does not exist - Downloading it now!.
    CreateFile - Exception. Could not create file: C:\Simba\Scripts/lamascripts/doughpaint.png
    Error: Invalid FileNum passed: -1 at line 165
    Execution failed.'


    Edit: debugged this on my own, you have to go into your scripts folder and change its name to 'lamascripts' - by default it names it something else


    quick proggy:
    c4f0aa1c3b2f5e911def568131787f14.png
    Last edited by ibot101; 10-06-2014 at 12:25 AM.

  3. #3
    Join Date
    Jan 2012
    Location
    East Coast
    Posts
    733
    Mentioned
    81 Post(s)
    Quoted
    364 Post(s)

    Default

    Quote Originally Posted by Lama View Post
    ..
    Super cool! Why do you need to have pots in 10th bank slot if using presets though?

  4. #4
    Join Date
    Sep 2014
    Posts
    45
    Mentioned
    1 Post(s)
    Quoted
    23 Post(s)

    Default

    taking another wild guess here (I seem to be doing this all day :P) but he probably uses the amount in your bank to determine how much was made/done rather than going by how many runs were made? I don't see why else lol

  5. #5
    Join Date
    Jan 2012
    Location
    East Coast
    Posts
    733
    Mentioned
    81 Post(s)
    Quoted
    364 Post(s)

    Default

    Quote Originally Posted by ibot101 View Post
    taking another wild guess here (I seem to be doing this all day :P) but he probably uses the amount in your bank to determine how much was made/done rather than going by how many runs were made? I don't see why else lol
    Doesn't look like it based on profit calc.

  6. #6
    Join Date
    Dec 2011
    Posts
    2,147
    Mentioned
    221 Post(s)
    Quoted
    1068 Post(s)

  7. #7
    Join Date
    Nov 2013
    Location
    North of Hell
    Posts
    271
    Mentioned
    7 Post(s)
    Quoted
    171 Post(s)

    Default

    Nice!! Congratz on your first release man!

  8. #8
    Join Date
    Sep 2014
    Posts
    45
    Mentioned
    1 Post(s)
    Quoted
    23 Post(s)

    Default

    I get this error every 15 mins or so now which terminates the script:

    'Error: Access violation at line 430'

  9. #9
    Join Date
    Mar 2013
    Location
    Argentina
    Posts
    758
    Mentioned
    27 Post(s)
    Quoted
    365 Post(s)

    Default

    gratz on first release!

  10. #10
    Join Date
    Feb 2013
    Location
    The Boonies
    Posts
    203
    Mentioned
    9 Post(s)
    Quoted
    70 Post(s)

    Default

    Quote Originally Posted by Ross View Post
    Super cool! Why do you need to have pots in 10th bank slot if using presets though?
    I use it for a function that checks if there is still pots of flour left in the bank, so if loadsToDo doesn't get met before you run out, it should terminate. I actually haven't tested that feature out yet though... so I don't know if it works yet

    Quote Originally Posted by ibot101 View Post
    I get this error every 15 mins or so now which terminates the script:

    'Error: Access violation at line 430'
    Does it point into another simba file, or does it point to line 430 in my script?
    I'll look into it, sadly I have to get some sleep first...

    Quote Originally Posted by Clarity View Post
    Cool! Seems like a very nice job for a first release. Congratulations, best of luck with your future scripts
    Thank you! I already have more ideas to get out (though I should polish this one up a bit first)...



    Thanks everyone for the input so far
    Last edited by Lama; 10-06-2014 at 02:00 AM.

  11. #11
    Join Date
    Jan 2012
    Location
    East Coast
    Posts
    733
    Mentioned
    81 Post(s)
    Quoted
    364 Post(s)

    Default

    Quote Originally Posted by Lama View Post
    I use it for a function that checks if there is still pots of flour left in the bank, so if loadsToDo doesn't get met before you run out, it should terminate. I actually haven't tested that feature out yet though... so I don't know if it works yet
    Have it look for a DTM, that way users can put it in any slot

  12. #12
    Join Date
    Sep 2014
    Posts
    45
    Mentioned
    1 Post(s)
    Quoted
    23 Post(s)

    Default

    Quote Originally Posted by Lama View Post
    Does it point into another simba file, or does it point to line 430 in my script?
    I'll look into it, sadly I have to get some sleep first...
    430 of your script

  13. #13
    Join Date
    Oct 2013
    Location
    East Coast USA
    Posts
    770
    Mentioned
    61 Post(s)
    Quoted
    364 Post(s)

    Default

    Congratulations on the release.

    You picked my favorite script. I made so many pastry doughs with mine!!

    They used to sell ok too, I didn't know people bought them.

  14. #14
    Join Date
    Feb 2013
    Location
    The Boonies
    Posts
    203
    Mentioned
    9 Post(s)
    Quoted
    70 Post(s)

    Default

    Quote Originally Posted by Ross View Post
    Have it look for a DTM, that way users can put it in any slot
    I think the function does look for a DTM, maybe I accidentally limited the DTM search for slot 10. I'll look at it tomorrow. Thanks for the thought.

    Quote Originally Posted by ibot101 View Post
    430 of your script
    Ahhh, I believe you ran into the bug where it doesn't walk far enough into the bank, so it couldn't find a banker, therefor it through out that error. I need to make a failsafe for that...

    Quote Originally Posted by bonsai View Post
    Congratulations on the release.

    You picked my favorite script. I made so many pastry doughs with mine!!

    They used to sell ok too, I didn't know people bought them.
    Thanks! However, they aren't really selling right now. Takes a while, but a profit is eventually turned, heh.
    Last edited by Lama; 10-06-2014 at 02:17 AM.

  15. #15
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    Quote Originally Posted by bonsai View Post
    Congratulations on the release.

    You picked my favorite script. I made so many pastry doughs with mine!!

    They used to sell ok too, I didn't know people bought them.
    I keep thinking you're riwu when i see that hat

    @OP grats on release Once it's really stable you should release in cooking/money section. I could probably take a look later tonight if you wanted some feedback.

  16. #16
    Join Date
    Aug 2014
    Location
    Australia
    Posts
    932
    Mentioned
    53 Post(s)
    Quoted
    495 Post(s)

    Default

    Congratulations for releasing your first script!


    Very nice for a first script, especially your use of functions in multiple places as checks for failsafes, well done.
    Last edited by Incurable; 10-06-2014 at 08:53 AM.



    New to scripting? Procedures & Functions for Beginners
    Do you use your computer at night? Just get f.lux

  17. #17
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    Looks very good for a first release!

    Instead calling things through the player form settings:
    Simba Code:
    if (strToBool(playerForm.players[currentPlayer].settings[2])) then
    you should should call things through the players integers/booleans:
    Simba Code:
    if players[currentPlayer].booleans[2] then

    That's why you assign them in the declare players procedures.

  18. #18
    Join Date
    Sep 2012
    Location
    Netherlands
    Posts
    2,752
    Mentioned
    193 Post(s)
    Quoted
    1468 Post(s)

    Default

    Nice name

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

  20. #20
    Join Date
    Feb 2013
    Location
    The Boonies
    Posts
    203
    Mentioned
    9 Post(s)
    Quoted
    70 Post(s)

    Default

    Quote Originally Posted by The Mayor View Post
    Looks very good for a first release!

    Instead calling things through the player form settings:
    Simba Code:
    if (strToBool(playerForm.players[currentPlayer].settings[2])) then
    you should should call things through the players integers/booleans:
    Simba Code:
    if players[currentPlayer].booleans[2] then

    That's why you assign them in the declare players procedures.
    I did try that actually, and it didn't seem to work, I will try again later today when I get home.

    Quote Originally Posted by hoodz View Post
    Nice name
    Nice picture... heh...

    Quote Originally Posted by Ashaman88 View Post
    Looking good man, congrats on the first release!
    It's an exciting time for sure! Thank you

  21. #21
    Join Date
    Feb 2013
    Location
    The Boonies
    Posts
    203
    Mentioned
    9 Post(s)
    Quoted
    70 Post(s)

    Default

    Version 1.1 Released

    Changes include:

    • So many banking failsafes
    • Antiban buffed (as it's only called once)
    • Tweaking playerForm variables (as per The Mayor's suggestion... it works!)


    Things to still do:

    • Implement something (that works) to check if there is still pots of flour in bank
    • Find the problem with downloading images (and the script accessing them?)?
    • Truncate irrelevant/useless TPAs from the big ATPA variable while @ the well (ideas? The closest 4 or 5 are the only relevant TPAs)
    • Get some darn transparency on the bottom of the painted progress image!


    Thanks everyone for all the useful input so far!

    Main post attachment updated.
    Last edited by Lama; 10-09-2014 at 01:26 AM.

  22. #22
    Join Date
    Dec 2010
    Posts
    483
    Mentioned
    30 Post(s)
    Quoted
    328 Post(s)

    Default

    gratz on first release, I can't get it working right now but I'll try and find the issue and get back to ya

  23. #23
    Join Date
    Feb 2013
    Location
    The Boonies
    Posts
    203
    Mentioned
    9 Post(s)
    Quoted
    70 Post(s)

    Default

    Quote Originally Posted by the bank View Post
    gratz on first release, I can't get it working right now but I'll try and find the issue and get back to ya
    Thanks for checking it out. There is a problem that happens sometimes on start where it finds an out of bounds error on some box and points to line 77 of drawing.simba, however I can't figure out what the problem is. However, it usually works when I stop and restart the script (it's seemingly by chance that it gets this error).

    So, you may be having that problem. Let me know

  24. #24
    Join Date
    Oct 2013
    Location
    East Coast USA
    Posts
    770
    Mentioned
    61 Post(s)
    Quoted
    364 Post(s)

    Default

    Quote Originally Posted by Lama View Post
    Thanks for checking it out. There is a problem that happens sometimes on start where it finds an out of bounds error on some box and points to line 77 of drawing.simba, however I can't figure out what the problem is. However, it usually works when I stop and restart the script (it's seemingly by chance that it gets this error).

    So, you may be having that problem. Let me know
    smartImage.debugATPA(ATPA);

    It's probably this. I've had that happen, it tries to draw the labels offscreen or something. Maybe cut down on that stuff for the release version.

  25. #25
    Join Date
    Feb 2013
    Location
    The Boonies
    Posts
    203
    Mentioned
    9 Post(s)
    Quoted
    70 Post(s)

    Default

    Quote Originally Posted by bonsai View Post
    smartImage.debugATPA(ATPA);

    It's probably this. I've had that happen, it tries to draw the labels offscreen or something. Maybe cut down on that stuff for the release version.
    Ah, maybe yeah. I mainly kept it in there since it kind of looks cool, but it probably makes more sense to remove it, especially if it's causing errors. Thanks for the suggestion.

Page 1 of 2 12 LastLast

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
  •