Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - innsmouthrain

Pages: 1
1
You can turn anti-aliasing off in the Settings -> Advanced tab.

The API you're looking at is the old one for versions before 3.0. The new one is here:
http://static.stencyl.com/api/31/

Thanks! I tried this before but I must have had some weird scaling mode or something because I still had a lot of problems. Now it seems to work flawlessly :)) my trust in stencyl is deepening instead of waning.

The other API came up first when I googled. Maybe it was just an unlucky search term.

Also, importing graphics at 4x means you import them 4x bigger, not they become 4x bigger after you import them.

Yes.

2
Hi!

I'm making a game with retro style graphics and have run into a big and growing number of problems.

This is the correctly displayed, no zooming or scaling, all sprites and tiles imported at x1 version:


Importing X4 tiles causes this:
 
Which I think is pretty crazy. I've tried different approaches, but any time I import tiles at x4 I get this, regardless of what scaling mode I'm in. The transparent parts being white is not caused by x4, it is my bad. Don't mind that.

Importing the tiles at x1 and scaling the game up causes interpolation or antialiasing:
 
This is not pretty for a game with pixelated art. Let me show you a zoomed in version:


I desperately need to get around this. I created another game and played around with the Zoom Scene resource from Stencyl Forge and ended up with this when run in flash player: 

But if I right-click in the player window to get the context menu, and then set the quality to low, it looks great! The interpolation is gone and the background returns for some reason! Like this:



I searched the forums but the previous person asking for how to programatically change the flash quality options. But the last person to ask this seemingly got ridiculed and left without help: http://community.stencyl.com/index.php?topic=24.0

I tried to run it native in linux, which is preferrable because I'm not looking to publish my future games for the web but for desktops. This is the result:

Visual artifacts here and there, noticably over his head during parts of the animation. Also the interpolation or antialiasing is of course there as well.

I found this  http://community.stencyl.com/index.php?topic=206.0  thread and tried to insert the code block
Code: [Select]
actor.currSprite.antialiasing = falseinto the "when drawing" superblock, but it says actor has no field called currSprite, despite the API http://api.stencyl.com/as3/ saying otherwise.

What I really want is full screen, letterbox scaling without any interpolation or antialiasing ever.  I want it to export to windows and linux native. I don't mind (actually I like) manual coding, or any other, weirder method to make it work. As long as it works well.

3
Completed / Re: Installation on arch
« on: May 15, 2014, 10:49:07 pm »
Thanks for the correction ahtapot! Must've mispasted.

What other libs did you need? I can't see any difference between your codeblock and mine.

4
Completed / Re: Installation on arch
« on: May 13, 2014, 10:50:08 pm »
Thanks :) Thanks, Jon!

I'll try to add more notes as I discover additional workarounds or possible problems.

5
Completed / Installation on arch
« on: May 13, 2014, 05:23:24 am »
Hi!

I suggest this be added to installation instructions on the wiki. Took a couple of days to get it all right, so this could save a lot of people a lot of time.

Download the linux tar.gz for stencyl and unpack it with tar -xzf <pkgname>

Here is a collection of packages to install. I recommend using yaourt for it.

On a 64-bit system, install the 32-bit packages from multilb (and from AUR):
Code: [Select]
yaourt -S lib32-gcc-libs lib32-gc lib32-libxext lib32-libxtst lib32-libxi lib32-ncurses lib32-libxt lib32-libxpm lib32-libxmu lib32-libxp lib32-gtk2 lib32-atk lib32-glibc lib32-cairo lib32-expat lib32-fontconfig lib32-freetype2 lib32-glib2 lib32-libice lib32-pango lib32-libpng lib32-libsm lib32-libx11 lib32-libxau lib32-libxcursor lib32-libxdmcp lib32-libxfixes lib32-libxinerama lib32-libxrandr lib32-libxrender lib32-zlib lib32-nss lib32-nspr lib32-curl lib32-alsa-lib
On a 32-bit system, you don't need to add the lib32- part. So if you're on a 32-bit installation, do:
Code: [Select]
yaourt -S gcc-libs gc libxext libxtst libxi ncurses libxt libxpm libxmu libxp gtk2 atk glibc cairo expat fontconfig freetype2 glib2 libice pango libpng libsm libx11 libxau libxcursor libxdmcp libxfixes libxinerama libxrandr libxrender zlib nss nspr curl alsa-lib
Stencyl uses java 6 as of May 13th 2014. Arch does not officially support java 6, so you need to also get the jre6-compat pkg from AUR, this will get you a java6 environment in /opt/. To use it, have a script as such:
Code: [Select]
#!/bin/bash
export JAVA_HOME="/opt/java6/jre/"
PATH=${JAVA_HOME}/bin:$PATH
$*

Let's say you name it jre6wrap.sh. Don't forget to 'chmod +x jre6wrap.sh' after pasting it in. This script will be used to run stencyl like so:
Code: [Select]
jre6wrap.sh java -Xms64m -Xmx1024m -Djava.library.path=./lib -Djava.library.path=./lib -Dswing.defaultlaf=javax.swing.plaf.metal.MetalLookAndFeel -jar ./sw.jar
For me, libpcre.so.3 was not found. This could possibly happen with other libraries. The  error message showed up when trying to run a game in native (linux) mode. I used
Code: [Select]
whereis libpcre.so and then used the path returned as first argument in
Code: [Select]
sudo ln -s /usr/lib/libpcre.so.1 /usr/lib/libpcre.so.3 This solved the problem for me.

6
Thank you kindly, captain!

Marked as solved and looking forward to next version.

Setting sails ;)

7
Resolved Questions / Re: Stencyl only starting with java 7 (?)
« on: May 13, 2014, 12:23:39 am »
Hm. When I said I had a flawed perspective in flash player. That was in the platformer demo. I had a blank column and row meaning I couldn't see the rightmost and bottom part of the screen without resizing.

I did the firsrt crash course game and got it to work (without the mp3 sounds) in linux. With flash player however, it's just a black screen and strange messages in log.

Mostly
Code: [Select]
[LOG] [Flash] scripts.Design_4_4_Jumping#init(77): 0
[LOG] [Flash] scripts.Design_4_4_Jumping#init(77): 0
[LOG] [Flash] scripts.Design_4_4_Jumping#init(77): 0
[ERR] java.lang.NullPointerException
[LOG] Unexpected problem on thread AWT-EventQueue-0: null

8
Resolved Questions / Re: Stencyl only starting with java 7 (?)
« on: May 12, 2014, 11:08:40 pm »
Cool! Didn't know about that tool.

libpcre is of course in the core/pcre and multilib/lib32-pcre, of which I have both installed.

also,
[moth@charm Stencyl]$ whereis libpcre.so.3
libpcre.so: /usr/lib/libpcre.so.1 /usr/lib/libpcre.so

which surprised me because I knew there was a libpcre.so.3 on my system. I checked with find again and turns out it's in ".local/share/Steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/libpcre.so.3". Like stencyl would look there? Not very likely.

So a simple
Code: [Select]
sudo ln -s /usr/lib/libpcre.so.1 /usr/lib/libpcre16.so.3allowed me to test in linux perfectly, and with a flawed perspective in the flash player. The flash browser version does not run, and it does not give error messages. Do you know why? Or should I mark this as solved and start another thread for it?

9
Resolved Questions / Re: Stencyl only starting with java 7 (?)
« on: May 12, 2014, 12:07:43 pm »
To make sure, these are the packages I've installed, should be every single one.

Code: [Select]
multilib/lib32-gcc-libs 4.9.0-2 [installed: 4.8.2-8]
aur/lib32-gc 7.4.0-1 [installed] (9)
multilib/lib32-libxext 1.3.2-1 [installed]
multilib/lib32-libxtst 1.2.2-1 [installed]
multilib/lib32-ncurses 5.9-2 [installed]
multilib/lib32-libxt 1.1.4-1 [installed]
aur/lib32-libxpm 3.5.10-1 [installed] (111)
multilib/lib32-libxmu 1.1.2-1 [installed]
aur/lib32-libxp 1.0.2-1 [installed] (153)
multilib/lib32-gtk2 2.24.23-1 [installed]
multilib/lib32-atk 2.12.0-1 [installed]
multilib/lib32-glibc 2.19-4 [installed: 2.19-3]
multilib/lib32-cairo 1.12.16-1 [installed]
multilib/lib32-expat 2.1.0-1 [installed]
multilib/lib32-fontconfig 2.11.1-1 [installed: 2.11.0-1]
multilib/lib32-freetype2 2.5.3-1 [installed]
multilib/lib32-glib2 2.40.0-1 [installed: 2.38.2-1]
multilib/lib32-libice 1.0.8-1 [installed]
multilib/lib32-pango 1.36.3-1 [installed]
multilib/lib32-libpng 1.6.10-1 [installed]
multilib/lib32-libsm 1.2.2-1 [installed]
multilib/lib32-libx11 1.6.2-1 [installed]
multilib/lib32-libxau 1.0.8-1 [installed]
multilib/lib32-libxcursor 1.1.14-1 [installed]
multilib/lib32-libxdmcp 1.1.1-1 [installed]
multilib/lib32-libxfixes 5.0.1-1 [installed]
multilib/lib32-libxi 1.7.2-1 [installed]
multilib/lib32-libxinerama 1.1.3-1 [installed]
multilib/lib32-libxrandr 1.4.2-1 [installed]
multilib/lib32-libxrender 0.9.8-1 [installed]
multilib/lib32-zlib 1.2.8-1 [installed]
multilib/lib32-nss 3.16.1-1 [installed]
multilib/lib32-nspr 4.10.5-1 [installed]
multilib/lib32-curl 7.36.0-1 [installed]
multilib/lib32-alsa-lib 1.0.27.2-1 [installed]

So, if anyone can find something missing - tell me. Or if any of them look suspicious, ask, alsa-lib for instance, is arch's asound library.

10
Resolved Questions / Re: Stencyl only starting with java 7 (?)
« on: May 12, 2014, 07:54:31 am »
There we go.

[moth@charm Stencyl]$ ~/scripts/jre6wrap.sh java -showversion
java version "1.6.0_45"

It starts, which is great.

However, the same errors as I had while running it in java7 are still present. Any clues?

EDIT:
Logs show:

Flash player:
Code: [Select]
[LOG] Running SWF: /home/moth/stencylworks/games-generated/Platformer/Export/flash/bin/Platformer.swf inside /home/moth/Downloads/Stencyl/ext-tools/players/flash-10-linux
[LOG] Error: Invalid SWF file name

Flash browser:
Code: [Select]
[LOG] Running inside browser.
[ERR] java.io.FileNotFoundException: /home/moth/stencylworks/games-generated/Platformer/Export/flash/bin/Platformer.swf (No such file or directory)

Linux:
Code: [Select]
...     a couple of:
[ERR] java.lang.NullPointerException
... and then, in the end:
[ERR] Could not delete file: /home/moth/stencylworks/games-generated/Platformer/Export/cpp/linux/bin/Platformer
[LOG] Called from EReg.hx line 200
[LOG] Uncaught exception - load.c(237) : Failed to load library : /home/moth/Downloads/Stencyl/plaf/neko-linux/regexp.ndll (libpcre.so.3: cannot open shared object file: No such file or directory)
[LOG] Called from EReg.hx line 200
[LOG] Uncaught exception - load.c(237) : Failed to load library : /home/moth/Downloads/Stencyl/plaf/neko-linux/regexp.ndll (libpcre.so.3: cannot open shared object file: No such file or directory)
[LOG] Finished building for Windows/Mac/Linux (or errored out): 1

11
Resolved Questions / Re: Stencyl only starting with java 7 (?)
« on: May 12, 2014, 07:50:06 am »
Using the java bin packaged with Stencyl obviously didn't work, so I'm gonna install a paralell java 6 to my system and I'll get back to you as soon as I get it set up.

12
Resolved Questions / Re: Stencyl only starting with java 7 (?)
« on: May 12, 2014, 06:07:16 am »
Hi again, captain!

Yessir. I have all the libs and their 32-bit counterparts installed.

13
Resolved Questions / Stencyl only starting with java 7 (?) [SOLVED]
« on: May 12, 2014, 05:23:08 am »
Hi!

I run linux (Arch Linux) in 64 bits. I'm trying to make Stencyl work. Unpacking the .tar.gz leaves me with an executable script called Stencyl. If I run this script, I get no output at all and the program does not start. If I manually run 'java -jar sw.jar', stencyl starts.

Output of java -showversion is 'java version "1.7.0_51" '

Stencyl starts, but I can not run any games. I get errors ranging from libraries not found to wrong swf file name.

Should I try to fix the issues with running the games in java 7 stencyl? Or make it work in java 6 ?

14
Resolved Questions / Re: stencyl isnt starting
« on: May 12, 2014, 01:30:34 am »
Thanks, captaincomic.

Somehow, moving it back did not work.

I deleted my .stencylworks folder (/home/<username>/.stencylworks on linux) and every other occurence of stencyl on my system and tried again, and it worked.

15
Resolved Questions / Re: stencyl isnt starting
« on: May 12, 2014, 12:32:42 am »
I have this problem as well. Redownloading did not work.

It actually started the first time, but now, I only get the error.

Pages: 1