Jump to content




[1.4.5] NPaintPro

utility

  • You cannot reply to this topic
238 replies to this topic

#181 nitrogenfingers

    Lua Professor

  • Members
  • 551 posts
  • LocationAustralia

Posted 02 September 2013 - 06:19 PM

So in the past few days I've spent a lot of time in airports, and with little else to do I've been pecking away on a few updates. These updates are geared towards making NPaintPro more OS-friendly, particularly for those that use graphical icons rather than text commands and windowing. If you fit either of those categories, let me know if this update suits your needs!

Posted Image

I've uploaded a new version with the beginnings of a few new features:
- Removed the requirement to add command line arguments. You can now simply run NPaintPro on its own from the command line, and specify a file name and file format. This also means if you've been confused as to why you're not seeing animation or text support in your program, this should make it crystal-clear when creating new files (my most commonly asked question is 'where are the animation tools' with NFP files...)
- Added a 'hide interface' feature. This removes the sidebar and footer from view and displays the rest of the canvas. If you have an animation playing, this should continue to play. When this feature is enabled, all input to the screen apart from hitting the ~ key will do nothing. This feature is designed for viewing a full picture, previewing animations (which should keep playing even after you've hidden the interface) and creating billboards for your server.
- The hide interface feature can also be activated by the -d command line parameter. If you want to have your billboards always on you can write a startup file that fires up NPP with a given file using this option.
- Support for different screen sizes has been added, which is mostly just removing features or making the screen more manegable when working with smaller or larger sizes. In particular:
- A scroll bar is added to the colour palette if the screen is too small to display it in full
- A grey connecting bar is added if the screen is too big
- Features like help, the dropdown menus and the logo screen are all scaled back or removed if the screen size cannot support them

There is a lot more to be done in getting NPP suited for windows yet, but I'm getting closer. If you have any issues to report or comments to make, as usual I'm very glad to hear them.

You can get the update here: http://pastebin.com/pzWSRqNF. The link on the main page has also been updated.

-NF

#182 TorakTu

  • Members
  • 231 posts

Posted 02 September 2013 - 10:03 PM

Very nice :)

#183 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 03 September 2013 - 12:55 AM

FYI for LyqydOS compatibility:

window_resize event is thrown whenever a window's size changes.
window_close is a planned event feature to allow a single coroutine resume cycle after the close window button is clicked. Yield with "close_wait" to cancel the closing and await further input from the user (save dialog, etc.).

Looks like I need to get my nose to the grindstone on the API I need to build for it. Hrmph.

#184 nitrogenfingers

    Lua Professor

  • Members
  • 551 posts
  • LocationAustralia

Posted 03 September 2013 - 02:01 AM

It looks like the way I've written available service prediction supports window resizing very comfortably. I'll add code to support window_resize events in my next release, but for more general OS application I expect I'll just perform a check to determine if term.size has changed after any given event and use that as my trigger.
window_close and close_wait may be more of an issue, as even though NPP doesn't make use of coroutines it does make heavy use of timers. I may need to find some way of stalling or restarting timers if they've been made to elapse for too long a time, and with task switching, programs that don't compare timer ID's to event catching may find their programs demonstrating unexpected behaviour when run in tandem with NPP. But I'll muse on this.

#185 PurpleTurtleShell

  • New Members
  • 2 posts

Posted 22 September 2013 - 07:45 PM

Hi, just wanted to say this is a great application, but I'm having some trouble with it (probably PEBCAK).

I'm unable to change frames - I follow the instructions in the Help menu and press number keys to try and change frames/layers so I can do the 2nd level of the blueprint I want to 3D print, but nothing happens.
I've tried using the num row & numpad, with numlock both on and off, with no change.

Am I missing something obvious?

#186 PurpleTurtleShell

  • New Members
  • 2 posts

Posted 22 September 2013 - 09:26 PM

Update / Bug Report: Launching npaintpro with no cmd line arguments, then choosing Animation at the startup screen doesn't give you Frame functionality.

However launching it via : "npaintpro -a file.nfa" works fine, so it seems like the startup options aren't actually applying properly.

#187 nitrogenfingers

    Lua Professor

  • Members
  • 551 posts
  • LocationAustralia

Posted 22 September 2013 - 10:16 PM

I've noticed this before- the file will save as a .nfa.nfp, which is a bit roundabout. I'll look into what's happening here and try to have that fixed in a few days. Thanks for the report :)

#188 MiniTom

  • New Members
  • 1 posts

Posted 25 October 2013 - 01:06 AM

This may or may not be a bug, you added the hide interface to satisfy the want to have pictures and animations on monitors constantly running, but you cant 'hide interface' while in play mode, either using ~ or trying to access the menu. I know this is not what the program is intended for but you by coincidence have created the best program for the job. :) just make this tiny change and itd be perfect.

#189 GamerFelio

  • Members
  • 3 posts

Posted 26 October 2013 - 12:54 PM

It's very good!
I don't understand all of this but its very good :D !

#190 Ian_Virus

  • Members
  • 4 posts

Posted 28 November 2013 - 10:47 PM

Hi. I am new to this forum, but the turtles are not printing in 3D print. I have the blocks in the turtle. Whats wrong?
EDIT: Yes I fueled it. Whats wrong? It doesn't want to place blocks.

Edited by Ian_Virus, 29 November 2013 - 12:56 PM.


#191 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 28 November 2013 - 11:17 PM

Have you fueled the turtle?

#192 Ian_Virus

  • Members
  • 4 posts

Posted 29 November 2013 - 12:54 PM

View PostLyqyd, on 28 November 2013 - 11:17 PM, said:

Have you fueled the turtle?
Yes. It moves but it doesn't place those blocks

Bug: Turtle doesn't print even with blocks and fuel inside.
Please fix this. I want to print 3d.

#193 mrpoopy345

  • Members
  • 148 posts
  • LocationMy Computer

Posted 30 November 2013 - 04:30 PM

Nice program! I have no idea how you do it :o

#194 nitrogenfingers

    Lua Professor

  • Members
  • 551 posts
  • LocationAustralia

Posted 30 November 2013 - 09:21 PM

View PostIan_Virus, on 29 November 2013 - 12:54 PM, said:

View PostLyqyd, on 28 November 2013 - 11:17 PM, said:

Have you fueled the turtle?
Yes. It moves but it doesn't place those blocks

Bug: Turtle doesn't print even with blocks and fuel inside.
Please fix this. I want to print 3d.

My guess is you've got your blocks in the wrong turtle slots. Check the 'slots' button in the print screen to make sure the materials are in the right turtle inventory slots. If they're not, the turtle won't place them.

#195 madvilager

  • Members
  • 4 posts

Posted 19 December 2013 - 12:50 PM

How do I change the layers in blueprint mode?
ps. nice programming

#196 YoYoYonnY

  • Members
  • 49 posts

Posted 23 December 2013 - 10:04 AM

Nice program. I just got three suggestion for the post to add. first: adding this line is easy but it would help a lot if you have to download npaintpro a lot (like me):
pastebin get pzWSRqNF npaintpro
second: will there ever be a standalone (for use in other operating systems)? The standalone would just need a "Save as..." and a "New" button in the 'file' menu.
third: make flood also flood empty places
that's about it.

Edited by YoYoYonnY, 23 December 2013 - 10:19 AM.


#197 xXLeNinjaXx

  • Members
  • 33 posts

Posted 24 December 2013 - 01:59 PM

How Do I create layers in blueprint mode?

#198 nitrogenfingers

    Lua Professor

  • Members
  • 551 posts
  • LocationAustralia

Posted 24 December 2013 - 08:20 PM

View PostYoYoYonnY, on 23 December 2013 - 10:04 AM, said:

Nice program. I just got three suggestion for the post to add. first: adding this line is easy but it would help a lot if you have to download npaintpro a lot (like me):
pastebin get pzWSRqNF npaintpro
second: will there ever be a standalone (for use in other operating systems)? The standalone would just need a "Save as..." and a "New" button in the 'file' menu.
third: make flood also flood empty places
that's about it.

The second is something I should do. A standalone version with multiple file access should be available. That just means me adding a browser at some stage, which I'm sure I'll eventually get around to.

I've discussed the third point before, and explained why it isn't possible due to the dynamic nature of the canvas size. Use the brush tool to fill empty spaces.

View PostxXLeNinjaXx, on 24 December 2013 - 01:59 PM, said:

How Do I create layers in blueprint mode?

Blueprint mode doesn't change anything to do with layering. Just make sure you've opened your file as an animation rather than a paint file (i.e. using the -a command line option).

#199 xXLeNinjaXx

  • Members
  • 33 posts

Posted 27 December 2013 - 09:49 PM

View Postnitrogenfingers, on 24 December 2013 - 08:20 PM, said:

View PostYoYoYonnY, on 23 December 2013 - 10:04 AM, said:

Nice program. I just got three suggestion for the post to add. first: adding this line is easy but it would help a lot if you have to download npaintpro a lot (like me):
pastebin get pzWSRqNF npaintpro
second: will there ever be a standalone (for use in other operating systems)? The standalone would just need a "Save as..." and a "New" button in the 'file' menu.
third: make flood also flood empty places
that's about it.

The second is something I should do. A standalone version with multiple file access should be available. That just means me adding a browser at some stage, which I'm sure I'll eventually get around to.

I've discussed the third point before, and explained why it isn't possible due to the dynamic nature of the canvas size. Use the brush tool to fill empty spaces.

View PostxXLeNinjaXx, on 24 December 2013 - 01:59 PM, said:

How Do I create layers in blueprint mode?

Blueprint mode doesn't change anything to do with layering. Just make sure you've opened your file as an animation rather than a paint file (i.e. using the -a command line option).



I'm Still Confused on how to make layers i opened it as animation?

When I Look At your video I see Frames but when i go into each of my categories (Sprite?, animation and Text) i see the same thing when I click the drop down menu (Painting, Display, Help, File). Point is i see the same thing on every one

Edited by xXLeNinjaXx, 30 December 2013 - 09:18 AM.


#200 samara8609

  • New Members
  • 1 posts

Posted 20 January 2014 - 12:40 PM

I'm still fairly new to computercraft, does anyone know of a tutorial on setting up the npaintpro program for 3d printing? I see that it looks like a wireless mining turtle but i am not sure if it requires a GPS or the commands once the program has been downloaded from pastebin to start the npaintpro program. Also, does the turtle need a separate program or is everything ran from the advanced computer?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users