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

Pages: 1 2 3 ... 173
1
Ask a Question / Re: Data Limit of Map Attribute.
« on: May 14, 2018, 11:43:49 am »
I guess your stab at 65k is assuming the map is bounded by an unsigned 16-bit integer in some way. While it's likely to be platform specific (if there is such a limit), I'd be more generous and assume something like 2 billion (2^31) since Haxe's Int is expressed as a signed 32-bit integer on the targets with native integer types. By that point, you're more likely to be running out of memory for your game to be running.

Basic map operations (get/set value) could perform worse based on the keys used to store data in the map, but assuming that the hashing function is well defined in general, and you aren't feeding it data based on explicit knowledge of the function in order to purposefully cause hash collisions, this isn't likely to be an issue.

2
Exactly the same problem? Can you post the stack trace of the error you got, like raregalaxy did? Just from your description of the problem it doesn't sound like the same thing.

3
Ask a Question / Re: Xcode 9 and iOS Target Version '11.0'
« on: May 12, 2018, 04:01:52 am »
Yes, Stencyl 3.5 works with the latest version of Xcode.

Sounds like you're in for a long and painful OS update. Good luck! I hope that updating your game ends up being less trouble than updating everything else. Let us know if you run into any troubles.

4
Ask a Question / Re: Newgrounds.swf Corrupted
« on: May 05, 2018, 02:59:35 am »
As mentioned, the newgrounds.swf issue isn't planned to be fixed in 3.4. I suppose I didn't make it clear, but that's the problem with Flash export. In other words, Flash export from 3.4 on High Sierra is simply broken and won't be fixed.

If you upload a log containing the HTML5 error, you might be able to get some help. If as you said, it only recently stopped working, then it's hopefully something we can look at and figure out with the version of Stencyl you currently have.

5
Ask a Question / Re: Newgrounds.swf Corrupted
« on: May 05, 2018, 01:00:08 am »
You'll need to provide more of your log to get help.

The newgrounds.swf issue is not planned to be fixed for 3.4. Stencyl 3.5 will be publicly available soon.

6
Ask a Question / Re: Desktop game crashes when saving
« on: April 28, 2018, 05:26:12 pm »
Assuming I'm right about the cause, it's an issue in your code in Stencyl.

All you need to look at is your game attributes. Do you have any map game attributes? What kinds of values are placed in those maps? Putting a list inside itself is also something that could cause this problem. Are you putting any complex objects, such as actors, joints, regions, etc., into game attributes? Try to keep game attributes limited to simple things that can be written out to a file, such as number, text, boolean, list, and map. Your lists and maps should also be composed of the same simple writable objects.

Having a list or map made of others lists or maps is okay, just make sure that you don't refer back to one of the parent lists or maps. Here's a more visual example of what I mean.

Let's say you're trying to save Map A, which is a map of maps.
Map A: [key: "Embedded map", value: Map B]
Map B: [key: "Embedded map", value: Map C]
Map C: [key: "Embedded map", value: Map A] <--- this would cause it to try saving map A again, which it's already in the process of saving, causing an infinite loop.

Again, this is assuming that I'm correct about the cause.

7
Chit-Chat / Re: Animated Avatar?
« on: April 26, 2018, 06:56:02 am »

8
Chit-Chat / Re: Watch out for the Eclipse 2017
« on: April 26, 2018, 06:55:06 am »
Me too but my great-great grandchildren snapped some pics. Enjoy.


9
Ask a Question / Re: Desktop game crashes when saving
« on: April 16, 2018, 10:08:43 pm »
Code: [Select]
Airlock_321.exe!haxe::Serializer_obj::serialize(Dynamic v) Line 1026 C++
  Airlock_321.exe!haxe::Serializer_obj::serializeFields(Dynamic v) Line 282 C++
  Airlock_321.exe!haxe::Serializer_obj::serialize(Dynamic v) Line 1026 C++
  Airlock_321.exe!haxe::Serializer_obj::serializeFields(Dynamic v) Line 282 C++
  Airlock_321.exe!haxe::Serializer_obj::serialize(Dynamic v) Line 1026 C++
  Airlock_321.exe!haxe::Serializer_obj::serialize(Dynamic v) Line 536 C++
  Airlock_321.exe!haxe::Serializer_obj::serializeFields(Dynamic v) Line 282 C++
  Airlock_321.exe!haxe::Serializer_obj::serialize(Dynamic v) Line 1116 C++
  Airlock_321.exe!haxe::Serializer_obj::run(Dynamic v) Line 1289 C++

It keeps on repeating the same lines at the top until the end, so it's highly likely that the stack overflow here is caused by a circular object reference being serialized. In other words, some object is referring back to itself somehow, and that object is being saved. For example, if you placed a map inside itself as one of the values, this could happen.

If this gives you an idea of where the problem is but you're still not sure, feel free to share some of your code. If you're still completely lost, you can send me your game and I can find the problem for you.

10
Ask a Question / Re: Desktop game crashes when saving
« on: April 12, 2018, 02:13:01 pm »
Please refer to my post. It's the most direct way to pinpoint exactly why your game is crashing.

11
Ask a Question / Re: Can I install beta 3.5 and keep 3.4
« on: April 12, 2018, 01:32:37 am »
It's installed to /usr/local/bin, so it's shared across users.

12
Ask a Question / Re: Desktop game crashes when saving
« on: April 11, 2018, 11:08:13 am »
If you run the game in debug mode in 3.5, you should get more information related to the crash.
For normal testing and for 3.4, here's a guide that can help.

http://community.stencyl.com/index.php?topic=49211.msg272307#msg272307

13
Ask a Question / Re: Can I install beta 3.5 and keep 3.4
« on: April 11, 2018, 11:00:02 am »
The only thing that Stencyl needs outside of its own install location and workspace is Neko, and only on Mac OS El Cap and above.

3.5 will detect that you have the wrong neko version installed and prompt you to upgrade.

If you've upgraded Neko for 3.5, 3.4 will not be able to detect an issue, and will fail to build games.

For the case of going from 3.5 to 3.4, the only step you need to take other than opening the other Stencyl.app is to run a Neko uninstall script.

14
Ask a Question / Re: Can I install beta 3.5 and keep 3.4
« on: April 11, 2018, 10:53:48 am »
You can have multiple workspace folders, actually. 100% independent installs of Stencyl.

Part one is to install Stencyl to two different folders. Easy.


Part two is an undocumented feature with no UI, but it's safe to rely on.

Go to where you installed the copy of Stencyl that you want a custom workspace for, and add this file in [Stencyl install]/prefs.

filename: LocalStencylWorks.prefs
content:
Code: [Select]
local.workdir.enabled=true
local.workdir=D:\sw-3_4_0

Set local.workdir to any folder. It will create the new workspace at [chosen folder]/stencylworks/.

15
Ask a Question / Re: Xcode / haxe issues
« on: April 09, 2018, 09:07:35 am »
Those are just warnings, it can still build successfully with them. Do you see anything else?

Pages: 1 2 3 ... 173