Chowdren discussion #1

Open
matpow2 opened this Issue Oct 3, 2016 · 58 comments

Projects

None yet
@matpow2
Owner
matpow2 commented Oct 3, 2016 edited

Welcome to the Chowdren news/discussion board!

@Retrobolt

So this is going to replace the clickteam thread?
Why did they make you leave?

@matpow2
Owner
matpow2 commented Oct 3, 2016 edited

This will replace the Clickteam thread, yes!
We came up with this solution together with Clickteam, which I think is for the better :)
The Chowdren website also received a makeover, so now it's actually nice to look at!

@Jlaufer82

Hi Mathias,
congrats to the new discussion board, it´s definitively a good solution to get even more serious!

I sent you an email about two weeks ago. I´m sure you´re always very busy, but did you get it?
I´m close to pitching my metroidvania Outbuddies to some publishers now and some information on the terms and conditions of a possible collaboration with you would surely be a big plus!

I also realized that the feature list provided is pretty outdated (2014), are there any plans to update this? I´m especially interested, if there are any plans to port Fusions build in physics engine (especially physics backdrop, static objects and joint mechanics).

Good luck with the new board and have a nice day!

@matpow2
Owner
matpow2 commented Oct 4, 2016

@Jlaufer82 Ah sorry, I'll get back to you on that right now!

You can download the source and take a look for yourself if you are curious :)
I want to make an updated extension/shader list sometime soon, but some other things are taking priority right now (i.e. shipping games).

Currently, only the Phizix object from MMF2 has been ported, so Fusion 2.5 physics would have to be ported if that's being used.

@matpow2
Owner
matpow2 commented Oct 15, 2016

@nsanjaysnathan Check out the ClickWiki instructions here: http://clickwiki.net/wiki/Chowdren/Platforms#Android

The instructions are slightly outdated, but they should give you a good idea of the steps involved.

@nsanjaysnathan

Hi I am receiving this error:

C:\anaconda\Chowdren\anaconda-master\Chowdren>python -m chowdren.run
001.ccn gamesrc --platform android
Could not import all platforms
(unknown chunk 8774)
(unknown chunk 8783)
(unknown chunk 8781)
Using zopfli for compression
Could not import all platformsCCould not import all platforms
Could not import all platforms
Could not import all platformsCould not import all platforms
Could not import all platforms
Could not import all platforms

ould not import all platforms

Adding shader 9g
Adding shader bgbloom
Adding shader hardlight
Adding shader colormixer
Adding shader coldirblur
Adding shader monochrome
Adding shader brightsatbg
Adding shader font
Adding shader fontoutline
Adding shader underwater
Adding shader tint
Adding shader dodgeblur
Adding shader gradient
Adding shader invert
Adding shader simplemask
Adding shader texture
Adding shader patternoverlay
Adding shader zoomoffset
Adding shader blur
Adding shader pixelscale
Adding shader bgblur
Adding shader hue
Adding shader pixeloutline
Adding shader rotatesub
Adding shader channelblur
Adding shader offsetstationary
Adding shader lens
Adding shader offset
Adding shader multiply
Adding shader subtract
Adding shader linearburn
Adding shader overlayalpha
Adding shader grain
Adding shader lineardodge
Adding shader subpx
Adding shader display
Adding shader perspective
Write frame: 0

stats:
ACTIONS
[]

CONDITIONS
[]

EXPRESSIONS
[]

C:\anaconda\Chowdren\anaconda-master\Chowdren>

On Sat, Oct 15, 2016 at 4:13 PM, N Sanjay S Nathan digitasmusik@gmail.com
wrote:

HI I have tried but python says it does not recognize chowdren.run.

On Oct 15, 2016 3:52 PM, "Mathias Kærlev" notifications@github.com
wrote:

@nsanjaysnathan https://github.com/nsanjaysnathan Check out the
ClickWiki instructions here: http://clickwiki.net/wiki/Chow
dren/Platforms#Android

The instructions are slightly outdated, but they should give you a good
idea of the steps involved.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#1 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ASbSFNiJ7RYqSIb0NDggWOxtsrRhTYzsks5q0IZCgaJpZM4KMMZn
.

@matpow2
Owner
matpow2 commented Oct 18, 2016

@nsanjaysnathan Sounds like everything converted properly! Now you just need to compile the game :)

@matpow2
Owner
matpow2 commented Oct 20, 2016

About the Nintendo Switch news, I'll definitely be looking into a backend for it.
Third-party developers don't actually know much yet, but I'll let you know once there's more to hear!

@SteelTitanium

Hi, do you know when will the Parallaxer and Button CS extension be ported. It's used by the Sonic Worlds Engine, and it would be nice of having a android version of Sonic BTS and ATS.

@looki
looki commented Oct 23, 2016 edited

Hey, Chowdren generally only supports extensions that are required by games that license it for ports. You're free to port them yourself or hire someone to do it for you, though. PS I highly doubt you need a GUI button for a game engine to work, and parallaxer is probably only for special effects, too! I'm sure you can find a way around these objects if necessary.

@SteelTitanium

Hi again, I have come across this problem well trying to convert the game.
run_2016-10-23_13-19-31

@nsanjaysnathan

Hi I am receiving this error:

C:\anaconda\Chowdren\anaconda-master\Chowdren\base>python build.py
Traceback (most recent call last):
File "build.py", line 625, in
main()
File "build.py", line 598, in main
with open('config.py', 'rb') as fp:
IOError: [Errno 2] No such file or directory: 'config.py'

@nsanjaysnathan

Hi I am receiving this error:

C:\anaconda\Chowdren\anaconda-master\Chowdren\base>python build.py
Traceback (most recent call last):
File "build.py", line 625, in
main()
File "build.py", line 598, in main
with open('config.py', 'rb') as fp:
IOError: [Errno 2] No such file or directory: 'config.py'

On Mon, Oct 24, 2016 at 1:23 AM, Steel notifications@github.com wrote:

Hi again, I have come across this problem well trying to convert the game.
[image: run_2016-10-23_13-19-31]
https://cloud.githubusercontent.com/assets/9903201/19628070/c4a6bab2-9923-11e6-8dac-fd02351e4e3e.png


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#1 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ASbSFKaWmAMqdC5lVZ6Sqjqtjf30XCjJks5q25f7gaJpZM4KMMZn
.

@matpow2
Owner
matpow2 commented Oct 26, 2016

@nsanjaysnathan Please don't double post, no need for that! You need to change the working directory to the location where you converted the game.

@SteelTitanium We don't support anything but Chowdren CCNs (from the exporter plugin) used together with the commandline tool any longer.

@SteelTitanium

@matpow2 Are we allowed to use chowdren for non-commercial use?

@matpow2
Owner
matpow2 commented Oct 27, 2016

@SteelTitanium Yes, but only under the terms of the GPL, i.e. you need to share all of your C++ sources.

@Retrobolt

Mathias,just asking.
Are you porting five nights at freddy's games?

Found a quote from Scott Cawthon saying-
"It will happen. I’m talking with a few companies who are interested in doing console remakes of the original games"

Theres only one company/person that ports clickteam games.( ͡° ͜ʖ ͡°)

@matpow2
Owner
matpow2 commented Nov 2, 2016

@Retrobolt Nope, that's not us. I think I will try and get in touch with him again though! Would be cool to see FNAF on consoles or Mac/Linux.

@elvisish
elvisish commented Nov 7, 2016

What does "no module: data loader not present mean in the command line tool?"

@elvisish

@matpow2 What does "no module: data loader not present mean in the command line tool?"

@IvoWubbels

@matpow2 Hello there, I did send an email with a request for more information. Are you please able to follow up on that? Also we may be able to support you on Switch if you need a licensed developer to team up with!

@oncer
oncer commented Nov 20, 2016 edited

@matpow2 When I try to convert a game using the command-line tool, it always fails with "Exception: unsupported compression flag: 3".
I noticed there is a flag "MMF_TRANS_START" that enables compression flag 3 handling, and tried to compile with that, but a file called "chunk_cm.cpp" seems to be missing from the open-source version. Is there a reason this file is not included, or are there any workarounds for the "compression flag: 3" error?

EDIT: nvm, if I export a CCN using the Chowdren plugin, the compression flag error disappears. it only happens if I either try to convert an EXE, or a CCN exported as "sub-application" from Fusion.

@matpow2
Owner
matpow2 commented Nov 21, 2016

@IvoWubbels: Replied by mail!

@oncer: Exactly, you need to export a CCN using the Chowdren plugin :)

@elvisish

@matpow2 What does "no module: data loader not present mean in the command line tool?"

@IvoWubbels

@elvisish: did you fix that problem? I did some testing and got the exact same error

@elvisish

@ivowubbels afraid not, still waiting for a response

@piratesephiroth

yeah, I'm getting the same "no module" error. There were no errors in the update process so I have no idea.
image

On Windows 8.1 x64 if it matters.

@oncer
oncer commented Dec 6, 2016

@piratesephiroth "No module named loader" could mean that you did not build the C++ modules. You need to run build_all.bat in anaconda-master first. In order to do that, you need the Microsoft C++ compiler for Python 2.7: http://www.microsoft.com/en-us/download/details.aspx?id=44266.
But, if you don't need to make changes to Chowdren, you could also export the game directly using the plugin.

@elvisish
elvisish commented Dec 6, 2016

@oncer if I try to build all, I get no module named Cython.Distutils, and that's with C++ compiler installed, and I believe the command line version is more up to date than the plugin version?

@oncer
oncer commented Dec 6, 2016 edited

@elvisish I can't tell if the command line version is more up to date. Anyway, you are on the right track, you are just missing some Python modules (Cython being one of them, you will also need Pillow). Try installing them with python -m pip install setuptools Pillow Cython

@elvisish
elvisish commented Dec 6, 2016

@oncer now I get:

C:\cmdtool\anaconda-master>batch-all
'batch-all' is not recognized as an internal or external command,
operable program or batch file.

C:\cmdtool\anaconda-master>build_all

C:\cmdtool\anaconda-master>python build.py build_ext -f --inplace
C:\Python27\lib\site-packages\Cython\Distutils\old_build_ext.py:30: UserWarning:
Cython.Distutils.old_build_ext does not properly handle dependencies and is dep
recated.
"Cython.Distutils.old_build_ext does not properly handle dependencies "
Traceback (most recent call last):
File "build.py", line 28, in
directive_defaults = Options.directive_defaults
AttributeError: 'module' object has no attribute 'directive_defaults'

@oncer
oncer commented Dec 7, 2016

@elvisish in build.py change this line
directive_defaults = Options.directive_defaults
to this
directive_defaults = Options.get_directive_defaults()
This is because Matt is using an older version of Cython. I'm sure he will update it in the future, but for now this fix should do.

@bartengine

Chowdren does not appear to work with the latest version of Cython. I managed to get build_all.bat to work after installing version 0.21.2 with pip install cython==0.21.2

@matpow2
Owner
matpow2 commented Dec 8, 2016

Hey everyone! I think you are on to something.
I will probably distribute the extension module binaries in the future, not sure why they weren't included with cmdtool!

@elvisish

Still getting:

C:\cmdtool\anaconda-master>python build.py build_ext -f --inplace
Traceback (most recent call last):
  File "build.py", line 23, in <module>
    from Cython.Distutils import build_ext
ImportError: No module named Cython.Distutils

After doing everything.

@piratesephiroth

run chowdren-cmd.bat and install pip like it says here:
https://pip.pypa.io/en/stable/installing/

then install the old cython with
python -m pip install cython==0.21.2

@elvisish

I get
error: command 'cl.exe' failed: No such file or directory

@piratesephiroth

I suppose you're getting that error after installing pip and cython

Did you install the Microsoft C++ compiler for python?
for Python 2.7: http://www.microsoft.com/en-us/download/details.aspx?id=44266

@elvisish

@piratesephiroth yes, I've installed and followed every step here to the word, all of the same versions and links. Should I wipe everything and go from scratch? (How do I cleanly uninstall all of this without leaving traces that could screw stuff up?)

@elvisish

@piratesephiroth with running chowdren-cmd.bat, I get a new popup command line that says
The system cannot find the specified file

@piratesephiroth

See if there are any spaces in the path to the cmdtool folder. I think it doesn't like that.

@bartengine

I got an object that is jumping around, modifying its x and y values directly and check for overlap with backdrop to detect collisions with the ground. In MMF this behavior works fine, but in Chowdren the object penetrates the ground at variable heights. I am guessing that this is because in Chowdren the overlap check is done at discrete intervals while MMF performs (a simulated variant of) continuous collision detection.

What would be the best approach to achieve the same result in Chowdren?

@bartengine

Ah, I was being an idiot. The collisions handling was handled fine. The game relied on integer rounding for snapping the coordinates correctly. Chowdren uses doubles for alterable values by default ('CHOWDREN_FORCE_ALT_DOUBLE' is set in dynnum.h). Switching it to using the DynamicNumber ('CHOWDREN_USE_DYNAMIC_NUMBER') solves this issue.

@advaith1
advaith1 commented Dec 17, 2016 edited

@matpow2 The ClickWiki Android and Linux instructions refer to the GitHub repo, I know you did not write it, but do you have other URLs that will work?

https://github.com/matpow2/anaconda.git
https://github.com/matpow2/anaconda

@advaith1

Also, is it possible to run the Command Line tool on macOS?

@advaith1

I tried it, and I'm having the same "ImportError: No module called loader" error.

screen shot 2016-12-17 at 2 23 14 pm

@bartengine
bartengine commented Dec 19, 2016 edited

This error occurs when you try to use the tool without building the Cython modules. Make sure you have the required python packages installed (Pillow, easy_install, cython==0.21.2) and run python build.py build_ext --inplace from the same folder as the build.py script

@advaith1

where do I install the packages from?

@advaith1

@bartengine Also I am trying to export to Windows if it matters.

@bartengine
bartengine commented Dec 20, 2016 edited

@advaith1 I do not know whether cross-compiling your game on OSX for Windows works, although I would suspect that is more an issue for CMake and XCode to solve, not Chowdren. @matpow2 might know more about that.

As for the python packages, I would suggest using the Chowdren command prompt to install pip (see https://pip.pypa.io/en/stable/ for the get-pip.py script):

python /path/to/get-pip.py

Then install the dependencies:

python -m pip install Pillow cython==0.21.2

Then build Chowdren by executing from the anaconda-master subdirectory:

./build_all.sh

After that Chowdren is ready for use. Please note that I am working on Windows, so I can only guess at the exact steps for OSX.

@piratesephiroth

yeah you should first set the path environmental var so it uses the python inside cmdtool instead of the one installed on your system

@Retrobolt

Hi Mathias, how's the NX and console ports going?If you can answer, what and how many games are you porting?
As always, love your work and happy holidays.

@matpow2
Owner
matpow2 commented Dec 25, 2016 edited

Merry Christmas everyone!

@advaith1 On Mac, you are not supposed to use Wine to run Chowdren. Instead, use the native Python installation, etc.

@bartengine I can't recommend the usage of CHOWDREN_USE_DYNAMIC_NUMBER, since it's quite experimental. Instead, use a config and e.g. use_alterable_int.

By the way, the instructions from @bartengine are pretty good. I hope I will have some time to update the cmdtool in 2017!

@Retrobolt I only think Switch devkits/software is available to select partners right now. Right now, I'm porting something like 2~3 games, so 2017 will be a cool year!

@advaith1

Also, on step 4 for Linux I get the following error (Ubuntu 16.10):

advaith@advaith-VB-MBP-Ubuntu16:~/anaconda$ python build.py build_ext -f --inplace
Traceback (most recent call last):
File "build.py", line 28, in
directive_defaults = Options.directive_defaults
AttributeError: 'module' object has no attribute 'directive_defaults'

The strange thing is, it worked fine on Ubuntu 14.04, but gives this error in 16.10.

In 16.10 there is a newer version of libboost-python, but that is the only difference.

@Retrobolt

@matpow2 That's great to here, always looking forward to fusion console games.

@piratesephiroth

@advaith1 , as @oncer wrote before, you either change this line in build.py
directive_defaults = Options.directive_defaults
to this
directive_defaults = Options.get_directive_defaults()

or install old cython 0.21.2

@advaith1

@piratesephiroth Thanks, I ran pip install cython==0.21.2 and now it seems to work.

@Matheus290

Hello, I recently installed Chowdren to run some tests and I can not compile any project, I can only compile blank projects. In all my tests I'm getting this error:

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 13: ordinal not in range(128)
[Error 126] Specified module could not be found. Error occurred, stopping build...

What to do? Sorry for my English. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment