Page 8 of 8

Re: mvEngine Development Thread

Posted: Tue Aug 17, 2010 10:37 pm
by mv2112
Just started making a Level Editor with Qt and openGL. I am liking Qt ALOT, especially with openGL! GUI FTW!

Re: mvEngine Development Thread

Posted: Wed Aug 18, 2010 1:09 pm
by eatcomics
same dude, got any good online tuts, I got some ebooks, but online tuts would be nice too

Re: mvEngine Development Thread

Posted: Wed Aug 18, 2010 2:03 pm
by mv2112
eatcomics wrote:same dude, got any good online tuts, I got some ebooks, but online tuts would be nice too
I just study the Qt documentation when needed and look at the example projects, there are also some OK tuts on the Qt site.
http://doc.qt.nokia.com/4.6/index.html

Re: mvEngine Development Thread

Posted: Wed Aug 18, 2010 2:17 pm
by eatcomics
Yeah I saw some of those, I have some great idea for my editor.... but I don't know how much of it I'm able to do, I would imagine all of it is possible, but probably not easy

It would be really cool if you'd do a video on yours when you get it working well. I was thinking about using Qt before the new AiGD but I was too lazy to actually start, then I saw the new episode I was like... Mk this is goin down

Re: mvEngine Development Thread

Posted: Mon Aug 23, 2010 4:44 pm
by mv2112
This is random but i was bord so i decided to try and convert a unsigned char array [4] into an unsigned int, write it to a binary file, read the file and try and turn that int back into a char array. I cant figure out how to turn the int back into the char array.
This is the code i used to turn the chars into the int:

Code: Select all

for(unsigned int i=0;i<4;i++)
{
     arraytoInt=(arraytoInt<<8)|array[i];
}
How do i split the integer into 4 chars?

Re: mvEngine Development Thread

Posted: Mon Aug 23, 2010 7:13 pm
by Ginto8
mv2112 wrote:This is random but i was bord so i decided to try and convert a unsigned char array [4] into an unsigned int, write it to a binary file, read the file and try and turn that int back into a char array. I cant figure out how to turn the int back into the char array.
This is the code i used to turn the chars into the int:

Code: Select all

for(unsigned int i=0;i<4;i++)
{
     arraytoInt=(arraytoInt<<8)|array[i];
}
How do i split the integer into 4 chars?
well, here's if you want it as a normal char* (AKA a C string):

Code: Select all

// for malloc
#include <cstdlib>
// for memcpy
#include <cstring>

char str[4] = "COWS";
// destination
char* dst;

// convert str to unsigned int
unsigned x = *(unsigned*)str;

// convert x into char* and copy into dst (with a null terminator)
dst = (char*)malloc(sizeof(unsigned)+1);
std::memcpy(dst,&x,sizeof(unsigned));
dst[sizeof(unsigned)] = '\0';
if you want it simply for the data in the unsigned chars, it only requires a little modification:

Code: Select all

// for malloc
#include <cstdlib>
// for memcpy
#include <cstring>

unsigned char str[4] = { 42,32,0,255 };
// destination
unsigned char* dst;

// convert str to unsigned int
unsigned x = *(unsigned*)str;

// convert x into unsigned char* and copy into dst (no null-terminator this time)
dst = (unsigned char*)malloc(sizeof(unsigned)+1);
std::memcpy(dst,&x,sizeof(unsigned));

Re: mvEngine Development Thread

Posted: Mon Sep 20, 2010 5:32 pm
by eatcomics
Heyo! Is this engine still in development? Mv haven't seen you around in a while...

Re: mvEngine Development Thread

Posted: Sun Sep 26, 2010 1:00 pm
by mv2112
So i haven't updated in a while because my engine isn't turning out like i want it to. It doesn't have that old-school RPG feel that i'm looking for.
What are some good RPGs for NES, SNES or N64? I'm looking for some inspiration....
The only one i have is Chrono Trigger and i'm liking it so far. I can also see inspiration from Chrono Trigger in Elysian Shadows :mrgreen:

Also, does anyone know if SDL with openGL works on the Wii? SDL blitting is WAY too slow for the wii.

Re: mvEngine Development Thread

Posted: Sun Sep 26, 2010 1:24 pm
by eatcomics
OpenGL works, but I hear its pretty buggy...

And on the RPG things, secret of mana, the old final fantasies of course, super mario rpg is okay... I saw a review on a game called shining force once, looked really cool, you should definitely play Earthbound, that game is so strange you have to play it, and of course diablo :D

Re: mvEngine Development Thread

Posted: Sun Sep 26, 2010 6:02 pm
by epicasian
Heres a giant forum post (en español) that describes the basics of the libraries: http://www.entuwii.net/foro/viewtopic.php?f=6&t=94

Also, found these:
http://wiibrew.org/wiki/Tutorials
http://wiibrew.org/wiki/List_of_development_tools

Hope this helps in some way, shape or form :DD

Re: mvEngine Development Thread

Posted: Mon Sep 27, 2010 2:31 pm
by mv2112
epicasian wrote:Heres a giant forum post (en español) that describes the basics of the libraries: http://www.entuwii.net/foro/viewtopic.php?f=6&t=94
Google Translate FTW!