PGE thread [Archive 2015-07-31]

Topics that have reached 100 pages.
Wohlstand
Van De Graf
Van De Graf
Posts: 2005
Joined: Tue Feb 11, 2014 4:44 pm
Flair: [ˈvoːlˌʃtant], 狐エンジニア
Pronouns: he/him
Contact:

Re: My Research of SMBX

Postby Wohlstand » Mon Mar 24, 2014 1:37 am

Natsu wrote:Can't download it you know? Could you put everything on a Zip file and post it again?
See:
I packed ZIP with WinRAR 5.0.0, but, not only you have problems with his ZIP's. I repacked archive with 7zip. You can ReDownload it ;)
http://engine.wohlnet.ru/docs/EXE_tests ... _0.0.1.zip
Last edited by Wohlstand on Sun Jun 07, 2015 4:54 pm, edited 1 time in total.

Wohlstand
Van De Graf
Van De Graf
Posts: 2005
Joined: Tue Feb 11, 2014 4:44 pm
Flair: [ˈvoːlˌʃtant], 狐エンジニア
Pronouns: he/him
Contact:

Update of Pre-Alpha editor

Postby Wohlstand » Wed Mar 26, 2014 2:28 am

Hello, I updated editor:
Now it can render the level objects in graphical Window:
Image
You can try to open any LVL Files and test it.

Get current version:
http://engine.wohlnet.ru/docs/EXE_tests ... _0.0.2.zip
(Please, redownload, who download before 17:50 UTC+4 today, I found serious bug and fix it, now levels loadings normal)
Last edited by Wohlstand on Sun Jun 07, 2015 4:55 pm, edited 3 times in total.

Squishy Rex
Posts: 1938
Joined: Sat Dec 21, 2013 4:30 am
Pronouns: he/him

Re: My Research of SMBX

Postby Squishy Rex » Wed Mar 26, 2014 8:27 am

Well, that was quick. This went from successfully loading lvl. files to now displaying them as rendered objects within days. Also the NPC txt. editor, is that new, I don't remember seeing that in the last version you posted the other day?

Wohlstand
Van De Graf
Van De Graf
Posts: 2005
Joined: Tue Feb 11, 2014 4:44 pm
Flair: [ˈvoːlˌʃtant], 狐エンジニア
Pronouns: he/him
Contact:

Re: My Research of SMBX

Postby Wohlstand » Thu Mar 27, 2014 6:08 pm

Squishy Rex wrote:I don't remember seeing that in the last version you posted the other day?
You mean my first test version? I publish it for preview. But this is second test version, that can render level objects.
P.S. Please, reDownload exe, I found serious bug and fix it. This bug makes too many trash on rendered level and sometimes make crash on some openings.

P.P.S. I add in main post Information about developing of new Editor

FanofSMBX
Mouser
Mouser
Posts: 3878
Joined: Sun Dec 22, 2013 12:01 pm

Re: My Research of SMBX

Postby FanofSMBX » Thu Mar 27, 2014 6:44 pm

Wohlstand wrote:
Squishy Rex wrote:I don't remember seeing that in the last version you posted the other day?
You mean my first test version? I publish it for preview. But this is second test version, that can render level objects.
P.S. Please, reDownload exe, I found serious bug and fix it. This bug makes too many trash on rendered level and sometimes make crash on some openings.

P.P.S. I add in main post Information about developing of new Editor
What new information is that? I don't see it.

Wohlstand
Van De Graf
Van De Graf
Posts: 2005
Joined: Tue Feb 11, 2014 4:44 pm
Flair: [ˈvoːlˌʃtant], 狐エンジニア
Pronouns: he/him
Contact:

Re: My Research of SMBX

Postby Wohlstand » Fri Mar 28, 2014 12:40 am

FanofSMBX wrote:
Wohlstand wrote:
Squishy Rex wrote:I don't remember seeing that in the last version you posted the other day?
You mean my first test version? I publish it for preview. But this is second test version, that can render level objects.
P.S. Please, reDownload exe, I found serious bug and fix it. This bug makes too many trash on rendered level and sometimes make crash on some openings.

P.P.S. I add in main post Information about developing of new Editor
What new information is that? I don't see it.
I placed this information from my bottom posts to the main, to show it to those who didn't see.

Axiom
Foo
Foo
Posts: 1471
Joined: Tue Dec 24, 2013 2:23 pm

Re: My Research of SMBX

Postby Axiom » Fri Mar 28, 2014 4:40 pm

Beat me to it..I started reseraching into the .lvl formats and wanted to create a LVL viewer in C#. I would totally help too if I knew C++ but alas, I am fluent in VB.NET and fairly decent enough in C#.

Wohlstand
Van De Graf
Van De Graf
Posts: 2005
Joined: Tue Feb 11, 2014 4:44 pm
Flair: [ˈvoːlˌʃtant], 狐エンジニア
Pronouns: he/him
Contact:

Re: My Research of SMBX

Postby Wohlstand » Sat Mar 29, 2014 3:16 am

Luigifan2010 wrote:Beat me to it..I started reseraching into the .lvl formats and wanted to create a LVL viewer in C#. I would totally help too if I knew C++ but alas, I am fluent in VB.NET and fairly decent enough in C#.
Good, you can made it ;-)

Get my LVL File description WITH file-format version control (for read files, created in SMBX <1.3):
http://engine.wohlnet.ru/docs/_SMBX64/f ... iption.pdf

And useful sources:
Level Data, need for render level map as image:
https://github.com/Wohlhabend-Networks/ ... filedata.h
Where "Struct" - Is data stucture as one object (properties of blocks, NPC, BGO, etc), placed on level
Where QString - is "string" class by Qt Library. It can support UTF8 strings. You can use std::string instead.
Where QVector - is a "vector" class, makes dynamic arrays, need for object arrays (example: NPCs, placed on level).
struct LevelData - is a root of Level Data structure, contains level data and editing settings (i will add more options for comfortable in editor, but "editing" options will not saving").

QRegExp allow to use regular expressions for data valid checking, it need for crash protections (original SMBX crashing on bad file format, you can test it)
https://github.com/Wohlhabend-Networks/ ... rw_lvl.cpp

And Level file Read function: returns Level data structure, or if file invalid, returns structure with set parameter "FileData.ReadFileValid=false;", and level file loading will be stoped with error message.
https://github.com/Wohlstand/PLatGEnWoh ... s.cpp#L492
(function is member of MainWindow class. Incoming argument - file pointer, returns Level data structure with scanned parameters from file);

With C++ using Qt library, it can help me create cross-platform source (for easy compiling in Windows, Linux, MacOS). I tested on Windows and on Linux, but I don't tested on MacOS (i haven't it, even Hackintosh).
Last edited by Wohlstand on Sun Jun 07, 2015 4:58 pm, edited 3 times in total.

Fuyu
Boom Boom
Boom Boom
Posts: 3137
Joined: Sat Dec 21, 2013 2:40 pm
Pronouns: He/Him

Re: My Research of SMBX

Postby Fuyu » Sat Mar 29, 2014 11:32 am

I'd like to know something Wohlstand, are you going to fix some of the bugs that SMBX had while making that Enginge? Because judging from almost all your research you mostly pointed out bugs like the Koopa Shell disappearing after being Offscreen for 4 seconds or so and such like you were intending to add them.

Wohlstand
Van De Graf
Van De Graf
Posts: 2005
Joined: Tue Feb 11, 2014 4:44 pm
Flair: [ˈvoːlˌʃtant], 狐エンジニア
Pronouns: he/him
Contact:

Re: My Research of SMBX

Postby Wohlstand » Sat Mar 29, 2014 1:23 pm

Natsu wrote:I'd like to know something Wohlstand, are you going to fix some of the bugs that SMBX had while making that Enginge? Because judging from almost all your research you mostly pointed out bugs like the Koopa Shell disappearing after being Offscreen for 4 seconds or so and such like you were intending to add them.
Disappearing after 4 sec, it is Auto-deactivation of NPC, it is not bug, it need for error protection. For example, if trashing between pipes shell will not disappear after 4 sec after off-screen, you will hearing annoying sounds before you end level. And CPU Overloading protection. If too many NPC stay activated, you CPU will be overload. NPC disappear forever only if you kill it. But other errors i will fix in new engine, for example, in events, can't delete layers from h/s/t-lists, if it has >20 items. And fixing crashing after bad file formats or bad decimals (on PC's with standardized "," as decimal separator).

Fuyu
Boom Boom
Boom Boom
Posts: 3137
Joined: Sat Dec 21, 2013 2:40 pm
Pronouns: He/Him

Re: My Research of SMBX

Postby Fuyu » Sat Mar 29, 2014 2:22 pm

I say, wouldn't be possible to make the Koopa Shell and many other NPCs that may overload your CPU disappear right when you go like 4 blocks Offscreen from the current location like Redigit made with the Springboard and such? Many Mario games like SMW work that way, and it would stop the CPU from working too hard.

Axiom
Foo
Foo
Posts: 1471
Joined: Tue Dec 24, 2013 2:23 pm

Re: My Research of SMBX

Postby Axiom » Sat Mar 29, 2014 3:07 pm

Wohlstand wrote:
Luigifan2010 wrote:Beat me to it..I started reseraching into the .lvl formats and wanted to create a LVL viewer in C#. I would totally help too if I knew C++ but alas, I am fluent in VB.NET and fairly decent enough in C#.
Good, you can made it ;-)
wat
Get my LVL File description WITH file-format version control (for read files, created in SMBX <1.3):
http://engine.wohlnet.ru/docs/LVL%20fil ... iption.pdf
I'll check that out an see how close that is to what I came up with
QRegExp allow to use regular expressions for data valid checking, it need for crash protections (original SMBX crashing on bad file format, you can test it)
https://github.com/Wohlstand/PLatGEnWoh ... ats.cpp#L6
If you need me to test it, I probably could. However, without compiling it into a .dll, it won't work with any C# code.

And Level file Read function: returns Level data structure, or if file invalid, returns structure with set parameter "FileData.ReadFileValid=false;", and level file loading will be stoped with error message.
https://github.com/Wohlstand/PLatGEnWoh ... s.cpp#L487
(function is member of MainWindow class. Incoming argument - file pointer, returns Level data structure with scanned parameters from file);
It'd be awesome if we could make this function it's own class instead of a part of the MainWindow class, that could come in handy when coding the actual engine
With C++ using Qt library, it can help me create cross-platform source (for easy compiling in Windows, Linux, MacOS). I tested on Windows and on Linux, but I don't tested on MacOS (i haven't it, even Hackintosh).
Unfortunately, I don't have a Mac (or a Hack..heh) to test for OS X either but I might have a buddy that'll loan me something of their's to test

Cheers,

Mike

Axiom
Foo
Foo
Posts: 1471
Joined: Tue Dec 24, 2013 2:23 pm

Re: My Research of SMBX

Postby Axiom » Sat Mar 29, 2014 3:09 pm

Natsu wrote:I say, wouldn't be possible to make the Koopa Shell and many other NPCs that may overload your CPU disappear right when you go like 4 blocks Offscreen from the current location like Redigit made with the Springboard and such? Many Mario games like SMW work that way, and it would stop the CPU from working too hard.
The language used to code SMBX was super inefficient. Seeing as how this is in C++ this shouldn't be an issue..

Wohlstand
Van De Graf
Van De Graf
Posts: 2005
Joined: Tue Feb 11, 2014 4:44 pm
Flair: [ˈvoːlˌʃtant], 狐エンジニア
Pronouns: he/him
Contact:

Re: My Research of SMBX

Postby Wohlstand » Sat Mar 29, 2014 3:27 pm

Luigifan2010 wrote:
Natsu wrote:I say, wouldn't be possible to make the Koopa Shell and many other NPCs that may overload your CPU disappear right when you go like 4 blocks Offscreen from the current location like Redigit made with the Springboard and such? Many Mario games like SMW work that way, and it would stop the CPU from working too hard.
The language used to code SMBX was super inefficient. Seeing as how this is in C++ this shouldn't be an issue..
I will made it optionaly: enable/disable auto-deactivation of NPC. It placed deactivated NPC on it start position. If option disabled, NPC always activated after activation.

Fuyu
Boom Boom
Boom Boom
Posts: 3137
Joined: Sat Dec 21, 2013 2:40 pm
Pronouns: He/Him

Re: My Research of SMBX

Postby Fuyu » Sat Mar 29, 2014 3:46 pm

Letting the option to choose regarding this matter sounds rather unnecessary to me, but I guess you're to maker.

Wohlstand
Van De Graf
Van De Graf
Posts: 2005
Joined: Tue Feb 11, 2014 4:44 pm
Flair: [ˈvoːlˌʃtant], 狐エンジニア
Pronouns: he/him
Contact:

Re: My Research of SMBX

Postby Wohlstand » Sat Mar 29, 2014 5:53 pm

Luigifan2010 wrote:wat
I mean level viewer, you can try to release it too.
Luigifan2010 wrote: If you need me to test it, I probably could. However, without compiling it into a .dll, it won't work with any C# code.
If I compile DLL for LVL File read, you need header file with prototypes for C#. And, for render level, you need configs for all existing objects - blocks, BGOs, NPCs, for valid creating needing image (and with user images).

I create render in my editor, but only for BGOs, because, I just create only full BOGs config:
https://github.com/Wohlstand/PLatGEnWoh ... vl_bgo.ini
With PHP I will export from Excel data to INI configs and use it for object parameters set:
https://github.com/Wohlstand/PLatGEnWoh ... nfigs/SMBX
I you insterest, I will publish PHP files, what helps me to create INI config from LibreCalc (Excel) document.
Luigifan2010 wrote: Unfortunately, I don't have a Mac (or a Hack..heh) to test for OS X either but I might have a buddy that'll loan me something of their's to test
Will be good, if this can allow to use MacOS X for tests

P.S. I uploaded my latest version: http://engine.wohlnet.ru/docs/EXE_tests ... _0.0.3.zip
Now, it can render BGOs, can Read/Write NPC configs, but, without preview thumb (need NPC dynamic config for get default options). Added splash image.
If you change default settings in INI files, or replaced images in default data folder, you can use menu file/reload configuration for reload dynamic configs and reload images.
Last edited by Wohlstand on Sun Jun 07, 2015 5:00 pm, edited 1 time in total.

Wohlstand
Van De Graf
Van De Graf
Posts: 2005
Joined: Tue Feb 11, 2014 4:44 pm
Flair: [ˈvoːlˌʃtant], 狐エンジニア
Pronouns: he/him
Contact:

Re: My Research of SMBX

Postby Wohlstand » Sun Mar 30, 2014 12:31 pm

Natsu wrote:Letting the option to choose regarding this matter sounds rather unnecessary to me, but I guess you're to maker.
Ow, I forgot about Donut block - if his start position will be into offscreen, he will be restored after fall, and you can jump on it secondary, and offscreen deactivation will be useful.

Axiom
Foo
Foo
Posts: 1471
Joined: Tue Dec 24, 2013 2:23 pm

Re: My Research of SMBX

Postby Axiom » Sun Mar 30, 2014 4:18 pm

Wohlstand wrote:
Luigifan2010 wrote:wat
I mean level viewer, you can try to release it too.
Luigifan2010 wrote: If you need me to test it, I probably could. However, without compiling it into a .dll, it won't work with any C# code.
If I compile DLL for LVL File read, you need header file with prototypes for C#. And, for render level, you need configs for all existing objects - blocks, BGOs, NPCs, for valid creating needing image (and with user images).

I create render in my editor, but only for BGOs, because, I just create only full BOGs config:
https://github.com/Wohlstand/PLatGEnWoh ... vl_bgo.ini
With PHP I will export from Excel data to INI configs and use it for object parameters set:
https://github.com/Wohlstand/PLatGEnWoh ... nfigs/SMBX
I you insterest, I will publish PHP files, what helps me to create INI config from LibreCalc (Excel) document.
If you create that DLL you're talking about, I could totally make a C# version of it. Just make sure you properly document everything so I can follow along.

Wohlstand
Van De Graf
Van De Graf
Posts: 2005
Joined: Tue Feb 11, 2014 4:44 pm
Flair: [ˈvoːlˌʃtant], 狐エンジニア
Pronouns: he/him
Contact:

Re: My Research of SMBX

Postby Wohlstand » Sun Mar 30, 2014 5:31 pm

Luigifan2010 wrote: If you create that DLL you're talking about, I could totally make a C# version of it. Just make sure you properly document everything so I can follow along.
But I will warn about using specific Qt functions and classes in my project (example, QFile, QString, QVector,...)

Compiled as DLL Library and sources for Level File Parser:
http://engine.wohlnet.ru/docs/Software/ ... format.zip
In lvl_filedata.h defined the Level Data structure, you will need for makes C# header with some structure.
In lvl_format.h defined the class with Lvl File parse function, what returns Level Data structure after read file.
About DLL's function I wrote in ReadMe.txt

And you will need this libs:
http://engine.wohlnet.ru/docs/Software/ ... _MinGW.zip

Wohlstand
Van De Graf
Van De Graf
Posts: 2005
Joined: Tue Feb 11, 2014 4:44 pm
Flair: [ˈvoːlˌʃtant], 狐エンジニア
Pronouns: he/him
Contact:

Re: My Research of SMBX

Postby Wohlstand » Mon Mar 31, 2014 5:29 am

OOps, I forgot add one library in archive!!!
Without this lib on some PCs graphics will be empty:

How to fix it:
- Download this library: http://engine.wohlnet.ru/docs/Software/qgif4.dll
- create subdirectory in your PlatGEnWohl editor folder imageformats and put library into it.

Image

P.S. I put library with dir into uploaded archive

Error demonstation
(for test i made white background and replace one GIF to PNG in lvl_bgo.ini and convert target image and mask)
Loaded level without GIF support (without lib)
Image

Loaded level WITH gif support (after i add library)
Image


Return to “Pit of 100 Pages”

Who is online

Users browsing this forum: No registered users and 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari