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 - ProMole

Pages: 1 2 3 4 5 6
31
Old Questions (from 1.x/2.x) / Re: Arbitrary Screen Positioning?
« on: February 09, 2012, 05:08:25 am »
Only for the wavy blue pattern, I believe. All the backgrounds in the game are 320x320, so if they were repeated they would be shown multiple times, I believe.

Let me check just to be sure...

EDIT: Checked. The blue wavy pattern on the back repeats, the title screen doesn't. If I unmark the wavy pattern to not repeat, all I get is the same screen, but half of it is totally black.

32
Old Questions (from 1.x/2.x) / Arbitrary Screen Positioning?
« on: February 08, 2012, 07:08:16 pm »
These two screenshots are built from the same Stencyl source. One of them is running on Flash as expected(granted, I wanted it to be centered but still couldn't figure how to do that without resizing the screen) and the other is an AdHoc iPhone app running in an iPad.

What I don't get is why the background is all the way up out of the screen, when the very next screen(which contains the game itself) is perfectly positioned even in the iPhone version. :|

33
Old Questions (from 1.x/2.x) / Re: Fitting game screen to iOS
« on: February 08, 2012, 06:41:20 pm »
Does that mean you are trying to have a scene that is smaller than the actual dimensions of the iphone screen? And then you want that scene to be centered which would create empty space on the top and bottom?
Yes, that :D And also for other orientations(say, top-center, or top-left, or right-center...).

With a repeating background, that'd be better than resizing every scene on the game to fit the screen just right. :)

34
Old Questions (from 1.x/2.x) / Re: Fitting game screen to iOS
« on: February 08, 2012, 03:02:15 pm »
That's not what I meant. :|

What I mean is this: the game's screen size is 320x480. The size of the particular screen is 320x320. If I run the game, the screen appears on the top, with a lot of blank space on the bottom. I'd like to center the screen.

In fact, I'd like to do that for the Web, too. I just have no idea if there is such an option...

35
Old Questions (from 1.x/2.x) / Fitting game screen to iOS
« on: February 08, 2012, 03:48:56 am »
It's one of those things I'm afraid I might know already... but anyway: I'm making a game in 320x320 screens in Flash. I want it to be centered on the iPhone and iPad(but the iPad might be problematic due to bigger resolution, so I'll leave this for later). My question is: can I determine in any place a property for this, or will I have to redimension my screens to 320x480 for them to work?

36
Old Questions (from 1.x/2.x) / Re: Timer problems?
« on: February 07, 2012, 12:24:13 pm »
Okay, I did some messng around in iStencyl and found out there were 3 instructions that were giving the errors. None of them were the time loop, though. Two were "Get attribute from actor" instructions and one was a draw text instruction that fetched the value from a Number attribute.

I guess I need to cast my attributes then, hm?  :-[

37
Old Questions (from 1.x/2.x) / Timer problems?
« on: February 06, 2012, 04:53:30 pm »
So, a few more adjusts and decided to put it through my Game of Life through building for iOS process. The logs I receive from "Publish iOS App(Ad Hoc)" and "Run in Device" have been attached.

And here is the code snippet of the part that has a timer in iOS code, which is where I suspect this is coming from:

Code: [Select]
[self doPeriodically:1000 * 0.5 task:[self createRunnable:^(Runnable* parent, Script* theScript)
{
    Design_0_0_LifeTimer* self = (Design_0_0_LifeTimer*) theScript;

    if (!(_Paused))
    {
        for (Actor* actorOfType in [self getActorsOfType:[self getActorType:0]])
        {
            if (actorOfType ! = nil && !actorOfType.dead)
            {
                [actorOfType shout:@"UPDATE"];
            }
        }

        for (Actor* actorOfType in [self getActorsOfType:[self getActorType:0]])
        {
            if (actorOfType ! = nil && !actorOfType.dead)
            {
                [actorOfType shout:@"GO"];
            }
        }

        _Generation + = 1;
    }
}]

And the screenshot that shows the part where the timer appears is also attached.

38
Old Questions (from 1.x/2.x) / Re: Can't build for iOS
« on: February 06, 2012, 12:51:29 pm »
To remove any unexpected circumstance that could be on the way, I simply uploaded the "Drop Block" iOS game -- which I could successfully export AdHoc using Mac in Cloud -- to StencylForge and downloaded it to my Linux machine. Trying to build it as an iOS game still gives me this error message:

Code: [Select]
[LOG] Write String out as file to: games-ios/Drop Block/Classes/ApplicationDelegate.m
[LOG] Write String out as file to: games-ios/Drop Block//Application-Info.plist
java.io.FileNotFoundException: games-ios/Drop Block/AppScaffold.xcodeproj/project.pbxproj (No such file or directory)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:209)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:160)
        at stencyl.sw.util.FileUtil.copy(FileUtil.java:221)
        at stencyl.sw.io.write.resource.XCodeProjectWriter.writeProject(XCodeProjectWriter.java:486)
        at stencyl.sw.app.filewatcher.ExternalAppLauncher.generateIPA(ExternalAppLauncher.java:255)
        at stencyl.sw.app.App$13.doInBackground(App.java:942)
        at stencyl.sw.app.App$13.doInBackground(App.java:939)
        at org.jdesktop.swingworker.SwingWorker$1.call(Unknown Source)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at org.jdesktop.swingworker.SwingWorker.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:636)

Even with permissions set to 777(AKA, anyone can read/write/execute) to the games-ios folder.

Publishing it as SWF is A-OK, though, so the game is fine. Also, it's one of iStencyl's examples so... it should be A-OK, right? Maybe I'm missing some library? Is there any Stencylworks for Linux user that could export their game Ad Hoc that could give me a hint?

39
Old Questions (from 1.x/2.x) / Re: Can't build for iOS
« on: February 05, 2012, 02:37:52 pm »
Yes, and yes. Permissions are set to: drwxr-xr-x

If I'm going to have to try this again, I'm gonna have to redo my license and provision profiles, as I had to replace them for my MacinCloud environment.

Also, while we're at it, I can't build it in MacOS either. Now I'm getting a "App Id mismatch" error, but I'm sure I have the EXACT same ID I have in the provisioning center. :| Never mind that, cleaned everything and started again from scratch and, surprise, it's working. Now let's see what I get in the email...

40
Old Questions (from 1.x/2.x) / Re: Can't build for iOS
« on: February 03, 2012, 03:48:22 pm »
Hm... not quite sure, but I think this might be a clue:

[LOG] Write String out as file to: games-ios/Conway's Game of Life/\Application-Info.plist

Also, here's the log for Ubuntu:

Code: [Select]
[LOG] Action: Publish iOS App (Ad Hoc)
[LOG] Checking Prereqs
[LOG] This is an Ad Hoc build, using the profile at: /home/guedesav/Devel/Stencyl/ios/Mogura_Games_Ad_Hoc.mob
[ERR] Could not locate bundleID. Skipping...
[LOG] Generate Project
[LOG] Write String out as file to: sandbox/project.pbxproj
[LOG] Copy directory from: plaf/ios/template/Base to: games-ios/Conway's Game of Life
[LOG] Copy directory from: plaf/ios/template/Base/Headers to: games-ios/Conway's Game of Life/Headers
[LOG] Copy Duration: 88
[LOG] Copy directory from: plaf/ios/template/Base/Classes to: games-ios/Conway's Game of Life/Classes
[LOG] Copy Duration: 38
[LOG] Copy Duration: 161
[LOG] Write String out as file to: games-ios/Conway's Game of Life/Classes/ApplicationDelegate.m
[LOG] Write String out as file to: games-ios/Conway's Game of Life//Application-Info.plist
java.io.FileNotFoundException: games-ios/Conway's Game of Life/AppScaffold.xcodeproj/project.pbxproj (No such
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:209)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:160)
        at stencyl.sw.util.FileUtil.copy(FileUtil.java:221)
        at stencyl.sw.io.write.resource.XCodeProjectWriter.writeProject(XCodeProjectWriter.java:486)
        at stencyl.sw.app.filewatcher.ExternalAppLauncher.generateIPA(ExternalAppLauncher.java:255)
        at stencyl.sw.app.App$13.doInBackground(App.java:942)
        at stencyl.sw.app.App$13.doInBackground(App.java:939)
        at org.jdesktop.swingworker.SwingWorker$1.call(Unknown Source)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at org.jdesktop.swingworker.SwingWorker.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:636)

41
Old Bugs (1.x/2.x) / Severe Inkscape SVG Problems
« on: February 03, 2012, 03:37:12 pm »
So, for my first try at working with vectorial game graphics, I try to upload the first image(the SVG) into Stencyl.

It recognizes the second image(the PNG).

What is going on? I can edit the SVG as much as I want and Stencyl keeps uploading that same abomination!

42
Old Questions (from 1.x/2.x) / Can't build for iOS
« on: February 03, 2012, 01:34:07 pm »
Generated certificates, provision profiles, etc. etc. This is what I get in output in Win7:

[LOG] Action: Publish iOS App (Ad Hoc)
[LOG] Checking Prereqs
[LOG] This is an Ad Hoc build, using the profile at: D:\Mogura_Games_AdHoc.mobileprovision
[ERR] Could not locate bundleID. Skipping...
[LOG] Generate Project
java.io.FileNotFoundException: sandbox\project.pbxproj (The system cannot find the path specified)
   at java.io.FileOutputStream.open(Native Method)
   at java.io.FileOutputStream.<init>(Unknown Source)
   at java.io.FileOutputStream.<init>(Unknown Source)
   at stencyl.sw.util.FileUtil.writeStringToFile(FileUtil.java:144)
   at stencyl.sw.io.write.resource.XCodeProjectWriter.generateProject(XCodeProjectWriter.java:1218)
   at stencyl.sw.io.write.resource.XCodeProjectWriter.writeProject(XCodeProjectWriter.java:325)
   at stencyl.sw.app.filewatcher.ExternalAppLauncher.generateIPA(ExternalAppLauncher.java:255)
   at stencyl.sw.app.App$13.doInBackground(App.java:942)
   at stencyl.sw.app.App$13.doInBackground(App.java:939)
   at org.jdesktop.swingworker.SwingWorker$1.call(Unknown Source)
   at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
   at java.util.concurrent.FutureTask.run(Unknown Source)
   at org.jdesktop.swingworker.SwingWorker.run(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
[LOG] Copy directory from: plaf\ios\template\Base to: games-ios\Conway's Game of Life
[LOG] Copy directory from: plaf\ios\template\Base\Classes to: games-ios\Conway's Game of Life\Classes
[LOG] Copy Duration: 1
[LOG] Copy directory from: plaf\ios\template\Base\Headers to: games-ios\Conway's Game of Life\Headers
[LOG] Copy Duration: 2
[LOG] Copy Duration: 6
[LOG] Write String out as file to: games-ios/Conway's Game of Life/Classes/ApplicationDelegate.m
[LOG] Write String out as file to: games-ios/Conway's Game of Life/\Application-Info.plist
java.lang.NullPointerException
   at java.io.FileInputStream.<init>(Unknown Source)
   at stencyl.sw.util.FileUtil.copy(FileUtil.java:220)
   at stencyl.sw.io.write.resource.XCodeProjectWriter.writeProject(XCodeProjectWriter.java:486)
   at stencyl.sw.app.filewatcher.ExternalAppLauncher.generateIPA(ExternalAppLauncher.java:255)
   at stencyl.sw.app.App$13.doInBackground(App.java:942)
   at stencyl.sw.app.App$13.doInBackground(App.java:939)
   at org.jdesktop.swingworker.SwingWorker$1.call(Unknown Source)
   at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
   at java.util.concurrent.FutureTask.run(Unknown Source)
   at org.jdesktop.swingworker.SwingWorker.run(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)

Similar thing going on Linux. I'm also trying MacinCloud to build the whole thing in a mac, but I can't use Keychain Access to generate p12 certificates.

Any help, please?

43
Game Art / Re: Want to team up for some game building fun??
« on: February 03, 2012, 10:34:40 am »
I think I can work wth you. Hope you don't mind that my free hours are rather scarce, but I'll do the best I can. :)

You can send some concepts for sprites right now, in fact if you wish, and I'll get working on them when I can. :D

44
Old Questions (from 1.x/2.x) / Run in iOS Device outside of Mac?
« on: February 03, 2012, 04:35:30 am »
Does that even work? I tried in two different machines running two different OSs(Win7 and Ubuntu) and the "Run in device" didn't appear when I connected my iPad to it. Yes, I have the MAC Address added to the list of devices in Stencyl.

Is this a Mac-only feature or I may have forgotten something?

45
Ask a Question / Re: Game-wide Behaviors?
« on: February 02, 2012, 06:50:47 am »
Ah, good. I'd use them for setting and checking Game Attributes mostly, so I think that'll work finely. :)

Thanks a lot. :D

Pages: 1 2 3 4 5 6