Jump to content




[1.4.5] NPaintPro

utility

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

#161 100chilly

  • New Members
  • 1 posts

Posted 20 June 2013 - 08:59 PM

My server doesnt like NPaintPro when i try to print to an actual cc printer. Any ideas on how to fix it? I've hooked it up with a wired modem and i tired the wireless but it keeps throwing errors.

21:35:13 [INFO] Mod Flag: Failed to save world flag data: null
21:35:13 [SEVERE] java.lang.NullPointerException
21:35:13 [SEVERE]	   at universalelectricity.prefab.flag.ModFlag.writeToNBT(M
odFlag.java:63)
21:35:13 [SEVERE]	   at universalelectricity.prefab.flag.FlagBase.getNBT(Flag
Base.java:16)
21:35:13 [SEVERE]	   at atomicscience.ZhuYao.worldSave(ZhuYao.java:717)
21:35:13 [SEVERE]	   at net.minecraftforge.event.ASMEventHandler_23_ZhuYao_wo
rldSave_Save.invoke(.dynamic)
21:35:13 [SEVERE]	   at net.minecraftforge.event.ASMEventHandler.invoke(ASMEv
entHandler.java:39)
21:35:13 [SEVERE]	   at net.minecraftforge.event.EventBus.post(EventBus.java:
108)
21:35:13 [SEVERE]	   at net.minecraft.world.WorldServer.func_73044_a(WorldSer
ver.java:1168)
21:35:13 [SEVERE]	   at org.bukkit.craftbukkit.v1_5_R3.CraftServer.unloadWorl
d(CraftServer.java:849)
21:35:13 [SEVERE]	   at net.minecraftforge.common.DimensionManager.unloadWorl
ds(DimensionManager.java:507)
21:35:13 [SEVERE]	   at net.minecraft.server.MinecraftServer.func_71190_q(Min
ecraftServer.java:848)
21:35:13 [SEVERE]	   at net.minecraft.server.dedicated.DedicatedServer.func_7
1190_q(DedicatedServer.java:320)
21:35:13 [SEVERE]	   at net.minecraft.server.MinecraftServer.func_71217_p(Min
ecraftServer.java:721)
21:35:13 [SEVERE]	   at net.minecraft.server.MinecraftServer.run(MinecraftSer
ver.java:605)
21:35:13 [SEVERE]	   at net.minecraft.server.ThreadMinecraftServer.run(Source
File:573)
21:35:13 [INFO] Mod Flag: Failed to save world flag data: null
21:35:13 [SEVERE] java.lang.NullPointerException
21:35:13 [SEVERE]	   at universalelectricity.prefab.flag.ModFlag.writeToNBT(M
odFlag.java:63)
21:35:13 [SEVERE]	   at universalelectricity.prefab.flag.FlagBase.getNBT(Flag
Base.java:16)
21:35:13 [SEVERE]	   at icbm.core.ZhuYaoBase.worldSave(ZhuYaoBase.java:256)
21:35:13 [SEVERE]	   at net.minecraftforge.event.ASMEventHandler_28_ZhuYaoBas
e_worldSave_Save.invoke(.dynamic)
21:35:13 [SEVERE]	   at net.minecraftforge.event.ASMEventHandler.invoke(ASMEv
entHandler.java:39)
21:35:13 [SEVERE]	   at net.minecraftforge.event.EventBus.post(EventBus.java:
108)
21:35:13 [SEVERE]	   at net.minecraft.world.WorldServer.func_73044_a(WorldSer
ver.java:1168)
21:35:13 [SEVERE]	   at org.bukkit.craftbukkit.v1_5_R3.CraftServer.unloadWorl
d(CraftServer.java:849)
21:35:13 [SEVERE]	   at net.minecraftforge.common.DimensionManager.unloadWorl
ds(DimensionManager.java:507)
21:35:13 [SEVERE]	   at net.minecraft.server.MinecraftServer.func_71190_q(Min
ecraftServer.java:848)
21:35:13 [SEVERE]	   at net.minecraft.server.dedicated.DedicatedServer.func_7
1190_q(DedicatedServer.java:320)
21:35:13 [SEVERE]	   at net.minecraft.server.MinecraftServer.func_71217_p(Min
ecraftServer.java:721)
21:35:13 [SEVERE]	   at net.minecraft.server.MinecraftServer.run(MinecraftSer
ver.java:605)
21:35:13 [SEVERE]	   at net.minecraft.server.ThreadMinecraftServer.run(Source
File:573)
21:35:13 [INFO] Mod Flag: Failed to save world flag data: null
21:35:13 [SEVERE] java.lang.NullPointerException
21:35:13 [SEVERE]	   at universalelectricity.prefab.flag.ModFlag.writeToNBT(M
odFlag.java:63)
21:35:13 [SEVERE]	   at universalelectricity.prefab.flag.FlagBase.getNBT(Flag
Base.java:16)
21:35:13 [SEVERE]	   at icbm.gangshao.ZhuYaoGangShao.worldSave(ZhuYaoGangShao
.java:196)
21:35:13 [SEVERE]	   at net.minecraftforge.event.ASMEventHandler_48_ZhuYaoGan
gShao_worldSave_Save.invoke(.dynamic)
21:35:13 [SEVERE]	   at net.minecraftforge.event.ASMEventHandler.invoke(ASMEv
entHandler.java:39)
21:35:13 [SEVERE]	   at net.minecraftforge.event.EventBus.post(EventBus.java:
108)
21:35:13 [SEVERE]	   at net.minecraft.world.WorldServer.func_73044_a(WorldSer
ver.java:1168)
21:35:13 [SEVERE]	   at org.bukkit.craftbukkit.v1_5_R3.CraftServer.unloadWorl
d(CraftServer.java:849)
21:35:13 [SEVERE]	   at net.minecraftforge.common.DimensionManager.unloadWorl
ds(DimensionManager.java:507)
21:35:13 [SEVERE]	   at net.minecraft.server.MinecraftServer.func_71190_q(Min
ecraftServer.java:848)
21:35:13 [SEVERE]	   at net.minecraft.server.dedicated.DedicatedServer.func_7
1190_q(DedicatedServer.java:320)
21:35:13 [SEVERE]	   at net.minecraft.server.MinecraftServer.func_71217_p(Min
ecraftServer.java:721)
21:35:13 [SEVERE]	   at net.minecraft.server.MinecraftServer.run(MinecraftSer
ver.java:605)
21:35:13 [SEVERE]	   at net.minecraft.server.ThreadMinecraftServer.run(Source
File:573)
>2013-06-20 21:35:13 [INFO] [ForgeModLoader] Unloading dimension 1
21:36:09 [INFO] ComputerCraft: Error running task.
21:36:09 [SEVERE] java.lang.NullPointerException
21:36:09 [SEVERE]	   at dan200.computer.shared.TileEntityModem.attach(TileEnt
ityModem.java:115)
21:36:09 [SEVERE]	   at dan200.computer.shared.TileEntityCable.attach(TileEnt
ityCable.java:354)
21:36:09 [SEVERE]	   at dan200.computer.core.apis.PeripheralAPI$PeripheralWra
pper.attach(PeripheralAPI.java:82)
21:36:09 [SEVERE]	   at dan200.computer.core.apis.PeripheralAPI$2.execute(Per
ipheralAPI.java:302)
21:36:09 [SEVERE]	   at dan200.computer.core.ComputerThread$1$1.run(ComputerT
hread.java:117)
21:36:09 [SEVERE]	   at java.lang.Thread.run(Unknown Source)
21:37:23 [INFO] 100chilly issued server command: /help modflag
21:37:27 [INFO] 100chilly issued server command: /modflag
21:38:01 [INFO] ComputerCraft: Error running task.
21:38:01 [SEVERE] java.lang.NullPointerException
21:38:01 [SEVERE]	   at dan200.computer.shared.TileEntityModem.attach(TileEnt
ityModem.java:115)
21:38:01 [SEVERE]	   at dan200.computer.shared.TileEntityCable.attach(TileEnt
ityCable.java:354)
21:38:01 [SEVERE]	   at dan200.computer.core.apis.PeripheralAPI$PeripheralWra
pper.attach(PeripheralAPI.java:82)
21:38:01 [SEVERE]	   at dan200.computer.core.apis.PeripheralAPI$2.execute(Per
ipheralAPI.java:302)
21:38:01 [SEVERE]	   at dan200.computer.core.ComputerThread$1$1.run(ComputerT
hread.java:117)
21:38:01 [SEVERE]	   at java.lang.Thread.run(Unknown Source)
21:38:38 [INFO] ComputerCraft: Error running task.
21:38:38 [SEVERE] java.lang.NullPointerException
21:38:38 [SEVERE]	   at dan200.computer.shared.TileEntityModem.attach(TileEnt
ityModem.java:115)
21:38:38 [SEVERE]	   at dan200.computer.core.apis.PeripheralAPI$PeripheralWra
pper.attach(PeripheralAPI.java:82)
21:38:38 [SEVERE]	   at dan200.computer.core.apis.PeripheralAPI$2.execute(Per
ipheralAPI.java:302)
21:38:38 [SEVERE]	   at dan200.computer.core.ComputerThread$1$1.run(ComputerT
hread.java:117)
21:38:38 [SEVERE]	   at java.lang.Thread.run(Unknown Source)
21:39:22 [INFO] ComputerCraft: Error running task.
21:39:22 [SEVERE] java.lang.NullPointerException
21:39:22 [SEVERE]	   at dan200.computer.shared.TileEntityModem.attach(TileEnt
ityModem.java:115)
21:39:22 [SEVERE]	   at dan200.computer.core.apis.PeripheralAPI$PeripheralWra
pper.attach(PeripheralAPI.java:82)
21:39:22 [SEVERE]	   at dan200.computer.core.apis.PeripheralAPI$2.execute(Per
ipheralAPI.java:302)
21:39:22 [SEVERE]	   at dan200.computer.core.ComputerThread$1$1.run(ComputerT
hread.java:117)
21:39:22 [SEVERE]	   at java.lang.Thread.run(Unknown Source)
This happens only when i try to print the first time but still i cant print to the cc printer before or after error... :(

#162 nitrogenfingers

    Lua Professor

  • Members
  • 551 posts
  • LocationAustralia

Posted 20 June 2013 - 10:32 PM

View Postemanuel12324, on 19 June 2013 - 09:24 PM, said:

Is there anyway to do something like hiding the color palette and menu bar? Im trying to make something like a bilboard and I don't know how to make it hide the controls.

I'm afraid not. NPaintPro is a painting tool rather than a image display, and I've not added the capacity to allow it to work as such. I recommend you create a new program using paintutils (or gameutils if you're working with animations) and draw the images wrapped to a monitor. This is safer and gives you more control over how the image appears.

View Post100chilly, on 20 June 2013 - 08:59 PM, said:

My server doesnt like NPaintPro when i try to print to an actual cc printer. Any ideas on how to fix it? I've hooked it up with a wired modem and i tired the wireless but it keeps throwing errors.
[...]
This happens only when i try to print the first time but still i cant print to the cc printer before or after error... :(

I do not. I've not seen anything like this happen on a computer before and don't think it has to do with NPP (that or you're asking it to do a very strange operation). When you say CC printer do you mean a paper-and-ink printer? I don't see why that wouldn't be possible, but it's not going to print it colour- would just be a page of hexadecimal characters.

It's very hard to say but this may be a bug in computercraft- if so I'd recommend reporting it in the bugs section with a detailed description of how you caused it.

#163 GreenPro1

  • Members
  • 11 posts

Posted 27 June 2013 - 03:31 AM

Hello , im a newbie and i need help , how do i load images created with npaintpro . . . ?
Before this , i was using this code :
bground = paintutils.loadImage(".background")
    paintutils.drawImage(bground,1,1)
now i made another background with npaintpro , with the same name ".background" . . . the question is how do i load the background i made using npaintpro . . . thank you.

#164 Mjaf

  • Members
  • 3 posts

Posted 03 July 2013 - 03:36 PM

View PostGreenPro1, on 27 June 2013 - 03:31 AM, said:

Hello , im a newbie and i need help , how do i load images created with npaintpro . . . ?
Before this , i was using this code :
bground = paintutils.loadImage(".background")
	paintutils.drawImage(bground,1,1)
now i made another background with npaintpro , with the same name ".background" . . . the question is how do i load the background i made using npaintpro . . . thank you.

If your new background image was made with npaintpro it will have the .nfp extention. So try the code below


bground = paintutils.loadImage(".background.nfp")
    paintutils.drawImage(bground,1,1)



#165 Mjaf

  • Members
  • 3 posts

Posted 03 July 2013 - 03:51 PM

I have just started using npaintpro myself, and was wondering if there is a way of printing an animation to a monitor in a similar way printing a normal picture as shown above.

#166 Zambonie

  • Members
  • 477 posts
  • LocationSpring Hill, Fl

Posted 07 July 2013 - 12:23 PM

Ive always had this suggestion. Transperant 'coating'.(I dont know if theres something else like this but,) This 'coating' allows you to have 2 pictures over each other. This is useful if you want to make A small pic apear over another full-screen menu pic representing something. Its bassicly making a invisible painting in some spots, so you dont have a white blob in your pic. This also saves time so you dont have to redo the whole pic with diffrent stuff on it over and over.(Like again,I dont know if theres a way to do this already.)

#167 nitrogenfingers

    Lua Professor

  • Members
  • 551 posts
  • LocationAustralia

Posted 07 July 2013 - 06:43 PM

View PostTroll., on 07 July 2013 - 12:23 PM, said:

Ive always had this suggestion. Transperant 'coating'.(I dont know if theres something else like this but,) This 'coating' allows you to have 2 pictures over each other. This is useful if you want to make A small pic apear over another full-screen menu pic representing something. Its bassicly making a invisible painting in some spots, so you dont have a white blob in your pic. This also saves time so you dont have to redo the whole pic with diffrent stuff on it over and over.(Like again,I dont know if theres a way to do this already.)

Are you saying this is a suggested feature for this program? Because what you're referring to, alpha channelling, already is a feature- has been since I released it...

View PostMjaf, on 03 July 2013 - 03:51 PM, said:

I have just started using npaintpro myself, and was wondering if there is a way of printing an animation to a monitor in a similar way printing a normal picture as shown above.

gameutils allows you to draw animations and cycle through frames. First page of this post.

#168 NOTUSEDPLEASEDELETE

  • Members
  • 70 posts

Posted 07 July 2013 - 11:37 PM

Animation doesn't work but great work anyway!

#169 MmPMSFmM

  • Members
  • 11 posts

Posted 15 July 2013 - 04:46 AM

Brilliant program!

#170 makerimages

  • Members
  • 236 posts

Posted 22 July 2013 - 02:07 AM

How does one display a .nft file?

#171 Lego Stax

  • Members
  • 136 posts
  • LocationThe dark depths of the web

Posted 25 July 2013 - 09:23 AM

I just released an OS which has nPaintPro in it. It can be found here.

#172 TorakTu

  • Members
  • 231 posts

Posted 05 August 2013 - 12:21 PM

I was looking for this. TY TY TY TY !!!!!

#173 MUpetzz

  • New Members
  • 2 posts

Posted 09 August 2013 - 08:44 AM

how can i play the "movie" automaticly?
maybe whits an redstone signal

sry for my bad english its not my motherlanguage.

#174 dpd_84

  • New Members
  • 2 posts

Posted 12 August 2013 - 03:20 PM

when I try to run 3DPrint I get an error: 3DPrint:18: attempt to index ? (a nil value)

Does anyone know how to fix this??

#175 MysticT

    Lua Wizard

  • Members
  • 1,597 posts

Posted 12 August 2013 - 04:13 PM

View Postdpd_84, on 12 August 2013 - 03:20 PM, said:

when I try to run 3DPrint I get an error: 3DPrint:18: attempt to index ? (a nil value)

Does anyone know how to fix this??
Are you trying to run it on a computer? You need a turtle to use that program.

#176 dpd_84

  • New Members
  • 2 posts

Posted 12 August 2013 - 04:31 PM

View PostMysticT, on 12 August 2013 - 04:13 PM, said:

View Postdpd_84, on 12 August 2013 - 03:20 PM, said:

when I try to run 3DPrint I get an error: 3DPrint:18: attempt to index ? (a nil value)

Does anyone know how to fix this??
Are you trying to run it on a computer? You need a turtle to use that program.

yes and thanks! I feel like a dunce now... but no tutorials on youtube or really anywhere I can find

#177 TheOddByte

    Lazy Coder

  • Members
  • 1,607 posts
  • LocationSweden

Posted 13 August 2013 - 09:12 AM

Really nice program! :)
But how would I run an animation without NPaintPro?
Like if I wanted to make a movie theater and simply create/save an animation onto a floppy disk then have a program that automatically runs i.. How would I do that?

#178 nitrogenfingers

    Lua Professor

  • Members
  • 551 posts
  • LocationAustralia

Posted 13 August 2013 - 11:11 AM

View PostHellkid98, on 13 August 2013 - 09:12 AM, said:

Really nice program! :)
But how would I run an animation without NPaintPro?
Like if I wanted to make a movie theater and simply create/save an animation onto a floppy disk then have a program that automatically runs i.. How would I do that?

This must be the most commonly asked question I encounter...

I've before stated that I don't recommend NPaintPro as a movie development tool- it was designed very specifically to be for animated sprites that would act as components in games built using GameUtils. Play animation libraries are packaged within that suite, and a program to load in and play a looped animation on a blank canvas would probably be about a 10 line program.

But this has come up often enough to suggests there's demand for a tool that can actually be used to make, if not movies at least animated billboards in Minecract. I agree, this is a good idea, but I will say that, at least at present, NPaintPro is just not the tool for that job.

So I'm going to compromise. I'll update the executable in the next few days to include a 'hide' feature, so the interface can be hidden, allowing the program to be run on your machine or on a monitor with the animation you've developed playing constantly. That'll make a sufficient stop-gap for this problem.

And, in the meantime I'll start thinking up some way of making an actual movie development tool in Minecraft...

NF

#179 GravityScore

  • Members
  • 796 posts
  • LocationLand of Meh

Posted 14 August 2013 - 06:54 PM

View PostHellkid98, on 13 August 2013 - 09:12 AM, said:

Really nice program! :)
But how would I run an animation without NPaintPro?
Like if I wanted to make a movie theater and simply create/save an animation onto a floppy disk then have a program that automatically runs i.. How would I do that?

You can use Lightshot, which has a record .nfa movie function :) It creates an executable from a .nfa animation which you can just run. You'd need to redirect the term to a monitor though.

EDIT: Just realised that this feature is currently buggy (it doesn't show the last frame and the UI isn't clear at all) :P I'll have to fix it tonight when I get back from school.

#180 TheOddByte

    Lazy Coder

  • Members
  • 1,607 posts
  • LocationSweden

Posted 15 August 2013 - 05:36 PM

View Postnitrogenfingers, on 13 August 2013 - 11:11 AM, said:

View PostHellkid98, on 13 August 2013 - 09:12 AM, said:

Really nice program! :)
But how would I run an animation without NPaintPro?
Like if I wanted to make a movie theater and simply create/save an animation onto a floppy disk then have a program that automatically runs i.. How would I do that?

This must be the most commonly asked question I encounter...

I've before stated that I don't recommend NPaintPro as a movie development tool- it was designed very specifically to be for animated sprites that would act as components in games built using GameUtils. Play animation libraries are packaged within that suite, and a program to load in and play a looped animation on a blank canvas would probably be about a 10 line program.

But this has come up often enough to suggests there's demand for a tool that can actually be used to make, if not movies at least animated billboards in Minecract. I agree, this is a good idea, but I will say that, at least at present, NPaintPro is just not the tool for that job.

So I'm going to compromise. I'll update the executable in the next few days to include a 'hide' feature, so the interface can be hidden, allowing the program to be run on your machine or on a monitor with the animation you've developed playing constantly. That'll make a sufficient stop-gap for this problem.

And, in the meantime I'll start thinking up some way of making an actual movie development tool in Minecraft...

NF
Ok.. I think I'll try to make my own animation program in the meantime :)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users