mvEngine Development Thread

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

User avatar
mv2112
Chaos Rift Junior
Chaos Rift Junior
Posts: 240
Joined: Sat Feb 20, 2010 4:15 am
Current Project: Java Tower Defence Game
Favorite Gaming Platforms: N64/Xbox 360/PC/GameCube
Programming Language of Choice: C/++, Java
Location: /usr/home/mv2112
Contact:

Re: mvEngine Development Thread

Post by mv2112 »

Just started making a Level Editor with Qt and openGL. I am liking Qt ALOT, especially with openGL! GUI FTW!
User avatar
eatcomics
ES Beta Backer
ES Beta Backer
Posts: 2528
Joined: Sat Mar 08, 2008 7:52 pm
Location: Illinois

Re: mvEngine Development Thread

Post by eatcomics »

same dude, got any good online tuts, I got some ebooks, but online tuts would be nice too
Image
User avatar
mv2112
Chaos Rift Junior
Chaos Rift Junior
Posts: 240
Joined: Sat Feb 20, 2010 4:15 am
Current Project: Java Tower Defence Game
Favorite Gaming Platforms: N64/Xbox 360/PC/GameCube
Programming Language of Choice: C/++, Java
Location: /usr/home/mv2112
Contact:

Re: mvEngine Development Thread

Post 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
User avatar
eatcomics
ES Beta Backer
ES Beta Backer
Posts: 2528
Joined: Sat Mar 08, 2008 7:52 pm
Location: Illinois

Re: mvEngine Development Thread

Post 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
Image
User avatar
mv2112
Chaos Rift Junior
Chaos Rift Junior
Posts: 240
Joined: Sat Feb 20, 2010 4:15 am
Current Project: Java Tower Defence Game
Favorite Gaming Platforms: N64/Xbox 360/PC/GameCube
Programming Language of Choice: C/++, Java
Location: /usr/home/mv2112
Contact:

Re: mvEngine Development Thread

Post 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?
User avatar
Ginto8
ES Beta Backer
ES Beta Backer
Posts: 1064
Joined: Tue Jan 06, 2009 4:12 pm
Programming Language of Choice: C/C++, Java

Re: mvEngine Development Thread

Post 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));
Quit procrastinating and make something awesome.
Ducky wrote:Give a man some wood, he'll be warm for the night. Put him on fire and he'll be warm for the rest of his life.
User avatar
eatcomics
ES Beta Backer
ES Beta Backer
Posts: 2528
Joined: Sat Mar 08, 2008 7:52 pm
Location: Illinois

Re: mvEngine Development Thread

Post by eatcomics »

Heyo! Is this engine still in development? Mv haven't seen you around in a while...
Image
User avatar
mv2112
Chaos Rift Junior
Chaos Rift Junior
Posts: 240
Joined: Sat Feb 20, 2010 4:15 am
Current Project: Java Tower Defence Game
Favorite Gaming Platforms: N64/Xbox 360/PC/GameCube
Programming Language of Choice: C/++, Java
Location: /usr/home/mv2112
Contact:

Re: mvEngine Development Thread

Post 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.
User avatar
eatcomics
ES Beta Backer
ES Beta Backer
Posts: 2528
Joined: Sat Mar 08, 2008 7:52 pm
Location: Illinois

Re: mvEngine Development Thread

Post 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
Image
User avatar
epicasian
Chaos Rift Junior
Chaos Rift Junior
Posts: 232
Joined: Mon Feb 22, 2010 10:32 pm
Current Project: Gigazilla Engine
Favorite Gaming Platforms: Dreamcast, SNES, PS2, PC
Programming Language of Choice: C/++
Location: WoFo, KY

Re: mvEngine Development Thread

Post 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
User avatar
mv2112
Chaos Rift Junior
Chaos Rift Junior
Posts: 240
Joined: Sat Feb 20, 2010 4:15 am
Current Project: Java Tower Defence Game
Favorite Gaming Platforms: N64/Xbox 360/PC/GameCube
Programming Language of Choice: C/++, Java
Location: /usr/home/mv2112
Contact:

Re: mvEngine Development Thread

Post 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!
Post Reply