As a minor suggestion, could we have a console window in game? Aka have a new window option that prints the console in the game as well instead of just debug? Sometimes I do like running my game as regular run because it one less window to deal with and it a bit more convenient for debugging purposes.Paradoxs wrote:I'm glad to hear it! I'm currently working on a number of things to improve it as I go. It still doesn't do everything I personally would like it but I think we have a good start. Keep me updated with requests and suggestions. Theres still a ton of work to do before we hit Version 1.0 on both the scripting API side and the general client tweaks and changesLostJustice wrote:I like the update. Definitely a thumbs up for it. Updated my script and things are working a lot better now.
I should also have noted all objects have a special print function.
So if you say doinstead of being greeted withCode: Select all
print(getAttention());you'll see a print-out that will give you actual information, making debugging and reporting easier[object object]
-
LostJustice
- Posts: 691
- Joined: Sun Mar 25, 2012 3:57 am
Re: Prime - Amber tweaks and Scripting API

-
Paradoxs
- Posts: 294
- Joined: Tue Aug 25, 2015 7:16 am
Re: Prime - Amber Tweaks and Scripting API
its on the list of things I want to add, I find it frustrating jumping between windows when Im coding, playing and looking for debug. So its certainly a feature that I'll be looking into
-
LostJustice
- Posts: 691
- Joined: Sun Mar 25, 2012 3:57 am
Re: Prime - Amber Tweaks and Scripting API
I also have a global chat system that at the moment is only in our village. I can push the changes to your repository if you want that feature as well. You could also use it to easily modify into a command console.Paradoxs wrote:its on the list of things I want to add, I find it frustrating jumping between windows when Im coding, playing and looking for debug. So its certainly a feature that I'll be looking into

-
Paradoxs
- Posts: 294
- Joined: Tue Aug 25, 2015 7:16 am
Re: Prime - Amber Tweaks and Scripting API
If you could make a request so I can take a look at it, I'v done some changes to how scripts are ran to prepare for some future updates. But i'd love to see what your system does for referenceLostJustice wrote:I also have a global chat system that at the moment is only in our village. I can push the changes to your repository if you want that feature as well. You could also use it to easily modify into a command console.Paradoxs wrote:its on the list of things I want to add, I find it frustrating jumping between windows when Im coding, playing and looking for debug. So its certainly a feature that I'll be looking into
-
LostJustice
- Posts: 691
- Joined: Sun Mar 25, 2012 3:57 am
Re: Prime - Amber Tweaks and Scripting API
I will get that ready to do so. Also, just a notation issue under objects is object.Fullname should be object.FullName to match the other item.FullName and also to match proper variable name conventions.Paradoxs wrote:If you could make a request so I can take a look at it, I'v done some changes to how scripts are ran to prepare for some future updates. But i'd love to see what your system does for referenceLostJustice wrote:I also have a global chat system that at the moment is only in our village. I can push the changes to your repository if you want that feature as well. You could also use it to easily modify into a command console.Paradoxs wrote:its on the list of things I want to add, I find it frustrating jumping between windows when Im coding, playing and looking for debug. So its certainly a feature that I'll be looking into

-
Paradoxs
- Posts: 294
- Joined: Tue Aug 25, 2015 7:16 am
Re: Prime - Amber Tweaks and Scripting API
Good catch, I will update it now, must have missed it during a re-write somewhereLostJustice wrote:
I will get that ready to do so. Also, just a notation issue under objects is object.Fullname should be object.FullName to match the other item.FullName and also to match proper variable name conventions.
-
LostJustice
- Posts: 691
- Joined: Sun Mar 25, 2012 3:57 am
Re: Prime - Amber Tweaks and Scripting API
Also another issue I have run across. Lets say you make a script to cut logs into blocks or planks, doesn't matter which. You finish chopping one log but you are now currently holding a block or plank on your hand. However you need to drop the block or plank in order to right click another item. I can't drop this item because no matter where i click with pfClick, it will not let me drop the item which doesn't let me continue chopping.

-
Paradoxs
- Posts: 294
- Joined: Tue Aug 25, 2015 7:16 am
Re: Prime - Amber Tweaks and Scripting API
Fixed in the current update to the APILostJustice wrote:Also another issue I have run across. Lets say you make a script to cut logs into blocks or planks, doesn't matter which. You finish chopping one log but you are now currently holding a block or plank on your hand. However you need to drop the block or plank in order to right click another item. I can't drop this item because no matter where i click with pfClick, it will not let me drop the item which doesn't let me continue chopping.
hasHandItem
getHandItem
dropHandItem
Added them yesterday after realizing I had no method to do a normal drop, along with some other handy functions coming our way next revision
-
LostJustice
- Posts: 691
- Joined: Sun Mar 25, 2012 3:57 am
Re: Prime - Amber Tweaks and Scripting API
Already ahead of things, nice.Paradoxs wrote:Fixed in the current update to the APILostJustice wrote:Also another issue I have run across. Lets say you make a script to cut logs into blocks or planks, doesn't matter which. You finish chopping one log but you are now currently holding a block or plank on your hand. However you need to drop the block or plank in order to right click another item. I can't drop this item because no matter where i click with pfClick, it will not let me drop the item which doesn't let me continue chopping.
hasHandItem
getHandItem
dropHandItem
Added them yesterday after realizing I had no method to do a normal drop, along with some other handy functions coming our way next revision

-
Paradoxs
- Posts: 294
- Joined: Tue Aug 25, 2015 7:16 am
Re: Prime - Amber Tweaks and Scripting API
Yeah I have a number of changes coming to prime. A number of which include changes to a few amber interfaces.
Some more functions and a few scrilt flags to customize your API usage.
Holiday is coming up though so I'll probably be working 15 hours a day. So expect an update post holiday.
Also a null.length error occured of get items returns empty handed
Until the update put any var = getItems into a try catch. It's been fixed for the next release though
Some more functions and a few scrilt flags to customize your API usage.
Holiday is coming up though so I'll probably be working 15 hours a day. So expect an update post holiday.
Also a null.length error occured of get items returns empty handed
Until the update put any var = getItems into a try catch. It's been fixed for the next release though