Prime - Amber Tweaks and Scripting API

Forum for alternative clients, mods & discussions on the same.

Re: Prime - Amber Tweaks and Scripting API

Postby ae_maderero » Sun Jan 15, 2017 9:24 pm

Paradoxs wrote:
ae_maderero wrote:That works, when it doesnt work is when you add a value, like doing coord.x +10.


I will look at it and see if I can figure out what's going on.



Looks like it works when u add using .sum(X, Y) function from Coord2d. Now the problem is that the Pathfinding Right click function ask for a Gob object instead coordinates, and using one taken from the field and changing its rc.X / rc.Y actually changes it on the view.
Can we get a Rightclick function asking just for a Coord/Coord2d2 object?
ae_maderero
 
Posts: 7
Joined: Fri Jan 13, 2017 4:48 pm

Re: Prime - Amber Tweaks and Scripting API

Postby Paradoxs » Mon Jan 16, 2017 12:31 am

Not with pathfinding. I use of left click to get close and then click right button with the normal click. pfClick doesn't have a Java counterpart that accepts cords and I haven't disected it to the point of modifying it myself yet.

Though I have made some steps towards replacing the java-pathfinding with an API javascript pathfinding, though a lot of work still needs to be made its on the list, its just not a priority at the moment. When this occurs I'd be able to include somthing like Coord right clicking and junk
Last edited by Paradoxs on Mon Jan 16, 2017 1:56 pm, edited 1 time in total.
User avatar
Paradoxs
 
Posts: 294
Joined: Tue Aug 25, 2015 7:16 am

PrimeAPI 1.0.1

Postby Paradoxs » Mon Jan 16, 2017 1:35 pm

PrimeAPI 1.0.1
https://github.com/TimothyCates/PrimeAPI/releases/tag/1.0.1

Patch Notes
Added a Coordinate object
Fixed potential coordinate issues
Print now prints to debug console and system chat instead of only system chat
User avatar
Paradoxs
 
Posts: 294
Joined: Tue Aug 25, 2015 7:16 am

Re: Prime - Amber Tweaks and Scripting API

Postby Robben_DuMarsch » Mon Jan 16, 2017 6:12 pm

Humble request:
An addition to the API to identify the quality of items we have in our inventories, or the inventory of a container.

Edit: Nevermind, already on your todo :)
Thanks for your help, Para!
User avatar
Robben_DuMarsch
 
Posts: 2301
Joined: Wed Sep 28, 2011 2:58 am

Re: Prime - Amber Tweaks and Scripting API

Postby Reyajh » Mon Jan 16, 2017 10:16 pm

Wow, I must be blind. For some reason my health, energy, run speed, fep bars were gone when I started this client. I've tried every A-Z + Shft-Alt-Ctrl F1-12 tilde combo & looked thru the entire options menus, and for the life of me I can't find... :(
Just my .O2... Taste, drink.., like/hate...
Jorb: "Oh, don't you worry. We're gonna take care of the pepper situation!" ¦]
User avatar
Reyajh
 
Posts: 271
Joined: Thu Mar 17, 2011 4:29 am

Re: Prime - Amber Tweaks and Scripting API

Postby shubla » Mon Jan 16, 2017 10:18 pm

I can host the javadocs when the time comes. Because WHY NOT.
Image
I'm not sure that I have a strong argument against sketch colors - Jorb, November 2019
http://i.imgur.com/CRrirds.png?1
Join the moderated unofficial discord for the game! https://discord.gg/2TAbGj2
Purus Pasta, The Best Client
User avatar
shubla
 
Posts: 13043
Joined: Sun Nov 03, 2013 11:26 am
Location: Finland

Re: Prime - Amber Tweaks and Scripting API

Postby Paradoxs » Mon Jan 16, 2017 10:41 pm

ae_maderero wrote:Also, dont use "typeof X != XXX", since you are going to work with Java classes. Use .class.getSimpleName()


The main focus of the api is to prevent accidental use of java objects which is why I dont check for java classes unless its inter-communication between my own functions, which currently doesnt require such checks. typeof works just find for what I need it for.

shubla wrote:I can host the javadocs when the time comes. Because WHY NOT.

Thats alright, thanks though. I have a few domains Ill just throw it on one of them

Reyajh wrote:Wow, I must be blind. For some reason my health, energy, run speed, fep bars were gone when I started this client. I've tried every A-Z + Shft-Alt-Ctrl F1-12 tilde combo & looked thru the entire options menus, and for the life of me I can't find... :(


Prime uses amber as a base, so it uses the same shortcut key as amber. I dont remember which one is off hand that shows them all again if you have hidden them
User avatar
Paradoxs
 
Posts: 294
Joined: Tue Aug 25, 2015 7:16 am

Re: Prime - Amber Tweaks and Scripting API

Postby Reyajh » Mon Jan 16, 2017 10:57 pm

Thanks for the reply. I'm still trying to figure it out. Awesome client tho. Runs smooth. I see a lot of sweet options.
Just my .O2... Taste, drink.., like/hate...
Jorb: "Oh, don't you worry. We're gonna take care of the pepper situation!" ¦]
User avatar
Reyajh
 
Posts: 271
Joined: Thu Mar 17, 2011 4:29 am

Re: Prime - Amber Tweaks and Scripting API

Postby Paradoxs » Mon Jan 16, 2017 11:03 pm

Reyajh wrote:Thanks for the reply. I'm still trying to figure it out. Awesome client tho. Runs smooth. I see a lot of sweet options.


UI Settings > Reset Windows button


Found that, should work
User avatar
Paradoxs
 
Posts: 294
Joined: Tue Aug 25, 2015 7:16 am

Re: Prime - Amber Tweaks and Scripting API

Postby Reyajh » Mon Jan 16, 2017 11:55 pm

omg!! Thxs man soo much! I was going crazy. That's well hidden :p
Just my .O2... Taste, drink.., like/hate...
Jorb: "Oh, don't you worry. We're gonna take care of the pepper situation!" ¦]
User avatar
Reyajh
 
Posts: 271
Joined: Thu Mar 17, 2011 4:29 am

PreviousNext

Return to The Wizards' Tower

Who is online

Users browsing this forum: Ahrefs [Bot], Bytespider [Bot], Claude [Bot], Yandex [Bot] and 76 guests