Alek Posted September 4, 2017 Posted September 4, 2017 For those of you that are familiar with my Macro Cooker script, the biggest challenge is allowing the user to select any cooking location in the game. The main obstacle was dynamically creating areas around the heat source which are desirable. This means detecting Ranges or Stoves that are inside and ensuring that your player doesn't accidentally walk outside. Doing some shameless self-promotion, I finally came up with a nice result for my latest update. Hopefully I will be using some of the same techniques in the webwalker. None of these areas are static, they are all dynamically generated: Al-Kharid: Varrock (showing both sides of a wall): Edgeville: Hopefully my valued gray names enjoy the hour or so I spent into this. 4
IDontEB Posted September 4, 2017 Posted September 4, 2017 id turn my name grey just so I can enjoy this. 1
Juggles Posted September 4, 2017 Posted September 4, 2017 Nice hope to see this implemented into more things.
Runnwith Posted September 4, 2017 Posted September 4, 2017 That'd be big improvement to scripts, where it depends on key locations.
TheWind Posted September 4, 2017 Posted September 4, 2017 what sort of checks did you do to test if a tile would be a valid addition to the area?
Alek Posted September 4, 2017 Author Posted September 4, 2017 1 minute ago, TheWind said: what sort of checks did you do to test if a tile would be a valid addition to the area? I start off with a simple Area a = entity.getArea(1), grabbing all with a distance of 1 of the entity. After that I filter all reachable positions, then filtered by real distance from the position to the entity using local path finder. Once that's finished I have all the positions which are valid; these are then sorted by x/y values, first index and last index are used to create the rectangle area.
Tom Posted September 4, 2017 Posted September 4, 2017 All these stoves are facing the same way, I wanna see an example in lumbridge castle
k9thebeast Posted September 4, 2017 Posted September 4, 2017 2 minutes ago, Tom said: All these stoves are facing the same way, I wanna see an example in lumbridge castle Here 1
Alek Posted September 4, 2017 Author Posted September 4, 2017 2 minutes ago, Tom said: All these stoves are facing the same way, I wanna see an example in lumbridge castle They aren't, it's just the angle. Al-Kharid faces east and Varrock faces north.
Lemons Posted September 4, 2017 Posted September 4, 2017 https://github.com/Lem0ns/QuantumAPI/blob/master/src/rip/quantum/api/QuantumMap.java#L249-L299 Finds suitable ends for entities based on map data. Might be of use for this as well. 3
Alek Posted September 4, 2017 Author Posted September 4, 2017 9 minutes ago, Lemons said: https://github.com/Lem0ns/QuantumAPI/blob/master/src/rip/quantum/api/QuantumMap.java#L249-L299 Finds suitable ends for entities based on map data. Might be of use for this as well. Is this your new API?
Lemons Posted September 4, 2017 Posted September 4, 2017 Just now, Alek said: Is this your new API? Yes, its an attempt to make up for the atrocity the other one was lol.
Alek Posted September 4, 2017 Author Posted September 4, 2017 1 minute ago, Lemons said: Yes, its an attempt to make up for the atrocity the other one was lol. I hate your wrappers like this:https://github.com/Lem0ns/QuantumAPI/blob/master/src/rip/quantum/api/QuantumStore.java But whats not to like about some of your solutions like the map stuff. Overall looks good! 1
Lemons Posted September 4, 2017 Posted September 4, 2017 (edited) 3 minutes ago, Alek said: I hate your wrappers like this:https://github.com/Lem0ns/QuantumAPI/blob/master/src/rip/quantum/api/QuantumStore.java But whats not to like about some of your solutions like the map stuff. Overall looks good! Yeah I kinda just wrapped them all, I been removing the ones that are obviously useless slowly. I'll probably remove this class as well. I haven't released it yet for a reason hehe. Edited September 4, 2017 by Lemons 1
ProjectPact Posted September 4, 2017 Posted September 4, 2017 3 minutes ago, Alek said: I hate your wrappers like this:https://github.com/Lem0ns/QuantumAPI/blob/master/src/rip/quantum/api/QuantumStore.java But whats not to like about some of your solutions like the map stuff. Overall looks good! When someone unlocks SIV rank