Foolproof way to publish .exe files 2020

Hi,

Can any1 give me a quick effective instruction link or thorough explanation about publishing to .exe files in 2020. I've been struggling with this for over a year I have used 2 different computers to do this with node.js, visual studios, cordova, html5 packing etc. etc. but I never get it to work and I'm really frustrated.

I have used gamesalad for 3 years now to perfect my few games which I hope to release to Steam someday, but now it seems that all has been for nothing.

Comments

  • Ei kait siinä studiosEi kait siinä studios Member Posts: 35

    After 20 more hours and 200 grey hairs, I finally made concrete progress. I try to document it here:

    1. Make html5 file like normal, rename sampleindex to index
    2. Next do according to this tutorial https://medium.com/@Raicuparta/getting-an-html5-game-on-steam-3-making-an-executable-e7bbf7706a50
      1. Used method is Nw.js. Download it & extract all the contents to the directory where you have your index.html file, and run nw.exe. It should open your game/app.
      2. Package.json is really important and easy to mess up!
      3. In Web2Executable you need to upload/open your ENTIRE project file, and it should automatically fill some data for you. You can update another ( like icons, app name) , just leave index.html the way it is!
      4. In Web2Executable you can choose the platforms to publish. I chose Windows 32 and 64bit. They worked right away! YAYAYAYAYAAY
    3. BUT for now, sound and music are missing, need to investigate this further.
  • pinkio75pinkio75 Member, PRO Posts: 971

    Ok i've convert 3 or 4 title with this method but you need to delete all .m4 file in asset.js an you need to respect the file.

  • Ei kait siinä studiosEi kait siinä studios Member Posts: 35

    Hi Pinkio75, nice to see others use this method too. I think I went through all the wrong ways before discovering this one 😂

    Could you explain what you mean with "respect the file"? I have already tried to delete the .m4 files in asset.js but something more is needed I think.

  • pinkio75pinkio75 Member, PRO Posts: 971
    edited May 6

    Yes sure, please see exactly the shoot, you need to respect the format of brackets:

    You need to erase what you see "underlined" and leave the rest; also i suggest you to use x-code to open asset.js o other text editor to have the best resolution, because is really simple to wrong the procedure.

  • Ei kait siinä studiosEi kait siinä studios Member Posts: 35

    It's wonderfully working! With .ogg sounds at least. Do you have advice how to cope with mp3s?

  • pinkio75pinkio75 Member, PRO Posts: 971
    edited May 6

    Hi, honestly i used the export html5 in .exe just for 3 games and i haven't done any further tests.

  • jamie_cjamie_c ImagineLabs.rocks Member, BASIC Posts: 5,718

    I'm not 100% sure but I believe the .ogg sound format is the only one that works in the HTML5 engine. If that is the case you'd need to convert any other sound formats to .ogg.

  • pinkio75pinkio75 Member, PRO Posts: 971
  • Ei kait siinä studiosEi kait siinä studios Member Posts: 35

    Hi once again,

    I couldn't get it to work.

    I think the main point is that program can't make a difference between sound.ogg and music.ogg, because normally music is mp3 format and is played with "play music" command (whereas sound.ogg is "play sound" actor command) Therefore I can't change music to .ogg because Gamesalad Windows version can't play them as music.

    In other words, if I can't get this to work this way, I have to change all my music files to .ogg and make them to act with "play sound" instead.

  • Ei kait siinä studiosEi kait siinä studios Member Posts: 35

    This is the output I need change now:

    {"name":"Bonus_farm_music","files":[{"name":"53.mp3","size":363840},{"name":"53.m4a","size":null},{"name":"53.ogg","size":null}]}l}

    With ogg.s I just remove the bolded part, but it doesn't work with mp3. files

    {"name":"Lumberjack","files":[{"name":"52.ogg","size":35942},{"name":"52.m4a","size":null}]

  • pinkio75pinkio75 Member, PRO Posts: 971

    just use .ogg files to avoid this issue.

    Convert all audio files directly in GS project when you import the audio files to .ogg after export in html5 the game and wrap in exe.

  • Ei kait siinä studiosEi kait siinä studios Member Posts: 35

    I think I made a passable compromise with audio and now my game is working :) at least on windows

    You can check it here: https://eikaitsiinastudios.itch.io/the-cable-game-demo

    Its my demo version, which i used as a testing piece :D

    Planning to do the same to full version in near future. Thanks for you help though!

  • Glass FrogGlass Frog Member, PRO Posts: 104
    edited September 8

    First of all, cheers for this thread guys I have found it really useful.

    Unfortunately though, I'm currently having the same problems as Ei Kait with my music not playing. Is there any audio format that will play and is acknowledged by Gamesalad as a music file. as it only lets me use .ogg as a SFX.

    Ive checked in the HTML5 File and it seems to have converted the music over to .ogg but it still will not play, even after using Pinkio75s tip.

    My Website: http://bit.ly/2c0ohmM
    My Apps on Google Play: http://bit.ly/2cccMIy
    My Apps on Apple App Store: http://apple.co/2bUSd0i

  • Glass FrogGlass Frog Member, PRO Posts: 104

    HI @adent42 do you know any solutions to the question above, cheers.

    My Website: http://bit.ly/2c0ohmM
    My Apps on Google Play: http://bit.ly/2cccMIy
    My Apps on Apple App Store: http://apple.co/2bUSd0i

  • adent42adent42 Key Master, Head Chef, Executive Chef, Member, PRO Posts: 1,934

    No idea, we'll need to play with it some.

  • Glass FrogGlass Frog Member, PRO Posts: 104

    No probs, thank you for the quick reply @adent42, please keep us up to date if you find any solutions, Thanks 😁

    My Website: http://bit.ly/2c0ohmM
    My Apps on Google Play: http://bit.ly/2cccMIy
    My Apps on Apple App Store: http://apple.co/2bUSd0i

  • Hi, pleased to see that this discussion has helped!

    So far, I had to compromise my game's music and change all mp3's to .oggs. This also meant that I had to re-do all my music actors, and they don't work as well as they did before, but well, it's a compromise :D

    I short: What you can do now for quick relief, is to open the asset-file and delete the bolded in your Sounds-section:

    Example:

    {"name":"Lumberjack","files":[{"name":"52.ogg","size":35942},{"name":"52.m4a","size":null}]

    This also means that you have to do this to every single sound file... which is a pain, but gets the job done. Later you can use the same asset-file to avoid this work in new releases.


    Ps. My game is now on steam ;)

    https://store.steampowered.com/app/1335350/Kaapelipeli_The_Cable_Game/

  • Glass FrogGlass Frog Member, PRO Posts: 104

    Hi @Ei kait siinä studios congrats on your steam release, I hope sales have been good for you.

    I did get the music working in the end, with tips from Gamevicci.

    As well as deleting all the m4a code in the asset-file,

    I also deleted the m4a files in the sound folder and that seemed to work for me.

    Glad you found a work in the end though.

    My Website: http://bit.ly/2c0ohmM
    My Apps on Google Play: http://bit.ly/2cccMIy
    My Apps on Apple App Store: http://apple.co/2bUSd0i

  • Chris FitsimonsChris Fitsimons Member, PRO Posts: 90

    Could anyone who has done this successfully make a YouTube step by step video? It would really help the community 😁

  • Glass FrogGlass Frog Member, PRO Posts: 104

    @Chris Fitsimons sorry I don't make YouTube vids myself but if you follow the link Ei Kait posted at the top of the page its quite straightforward, its just a bit of trial and error.


    But saying that, I am having trouble with Web2Executable. After exporting to windows I click on the exe application and the game opens up but gets stuck on a black screen with the custom loading wheel spinning and never progresses.

    The game works fine before being exported, has anyone else had this problem? I've have tried running it through web2exe multiple times selecting all different options but nothing seems to work.

    Its really frustrating as this is the last step I need to complete before I can publish the game but I just cant seem to get it working.

    My Website: http://bit.ly/2c0ohmM
    My Apps on Google Play: http://bit.ly/2cccMIy
    My Apps on Apple App Store: http://apple.co/2bUSd0i

Sign In or Register to comment.