Community

The PokéCommunity

We are still working on a better slogan!

Visit Index



Advertise here

Go Back   The PokéCommunity Forums > Creative Discussions > Game Development
Notices

Game Development Your number one stop for anything related to creating games (except ROM hacks). You can even make your own!

Post Reply
Click here to go to the first staff post in this thread.  
Thread Tools
  #1    
Old September 8th, 2010, 04:31 PM
DaSpirit's Avatar
DaSpirit
Mad Programmer
 
Join Date: Jul 2007
Location: New York City
Gender: Male
Nature: Quiet

Advertise here
For a Mystery Dungeon game? I'd like to know how to make one, I've been trying to play around with it but I can't match mine to the real games. Anyone have any pseudo code they'd like to share?

I'm sure the best way to do this is to create a 2 dimensional array, with each value corresponding to whether it is passable or not. Then you can place the items and then place the tiles on the actual room corresponding on which places near it are passable and randomize it for some added tile effects. The only problem is placing those boxes and paths. I can't get it right.

I'm using Game Maker, but like I said I'd rather have pseudo code than actual code. Well, actual code will help even if it's not GML, just need an example to build off of.
  #2    
Old September 8th, 2010, 07:07 PM
thepsynergist's Avatar
thepsynergist
A Gym Leader, Kyushu Region
 
Join Date: Mar 2009
Location: California, USA
Age: 24
Gender: Male
Nature: Adamant
Send a message via Yahoo to thepsynergist Send a message via Skype™ to thepsynergist
I was under the impression Pokemon essentials for RPG Maker XP has it built in.



My Youtube Channel: http://www.youtube.com/thepsynergist
  #3    
Old September 9th, 2010, 04:35 AM
DaSpirit's Avatar
DaSpirit
Mad Programmer
 
Join Date: Jul 2007
Location: New York City
Gender: Male
Nature: Quiet
Oh, it seems it does. Is it similar to that of the Mystery Dungeon dungeon generator? I don't have RPG Maker, so I can't check for myself.
  #4    
Old September 9th, 2010, 01:12 PM
DarkDoom3000's Avatar
DarkDoom3000
Super Pokemon Eevee Edition
 
Join Date: Jul 2004
Location: New Zealand
Age: 22
Gender: Male
Nature: Calm
RM2k3 has one built in, i suspect RMXP has one too. It just creates random dungeons depending on the tiles you want and stuff. It will make sure all events aren't blocked off and whatnot.
Beta 0.73 is out
Thread | Website | Blog
  #5    
Old September 10th, 2010, 07:21 AM
Wichu's Avatar
Wichu
Project Amethyst
 
Join Date: Sep 2007
Location: North Herts, England
Age: 21
Gender: Male
Nature: Naive
Quote:
Originally Posted by DaSpirit View Post
Oh, it seems it does. Is it similar to that of the Mystery Dungeon dungeon generator? I don't have RPG Maker, so I can't check for myself.
The maps it generates are quite similar to the PMD maps.
Have you tried searching on Google for a random map script? I'm sure you'll be able to find some code for one.
  #6    
Old September 10th, 2010, 10:54 AM
Meowth's Avatar
Meowth
That's Right!
Community Supporter
 
Join Date: Jan 2007
Location: TEAM ROCKET WAREHOUSE
Age: 23
Gender: Male
Nature: Impish
Send a message via AIM to Meowth Send a message via Windows Live Messenger to Meowth
Funny you should ask, I'm currently having many problems with getting that script working outside of Essentials. (look at my sig)

I even tried looking at the Japanese version of the script, with the demo (that's what Poccil edited) but it just doesn't seem to work right... if anyone gets it working, I'd love to know. It's about all that's holding me back in my game right now.

Quote:
Originally Posted by Wichu View Post
Have you tried searching on Google for a random map script? I'm sure you'll be able to find some code for one.
I've personally tried simply searching many times, with no luck. Not for RMXP, anyway.

Last edited by Meowth; September 10th, 2010 at 11:01 AM.
  #7    
Old September 10th, 2010, 03:06 PM
DaSpirit's Avatar
DaSpirit
Mad Programmer
 
Join Date: Jul 2007
Location: New York City
Gender: Male
Nature: Quiet
I can't find anything. I'm making this in Game Maker, not RPG Maker so I can't use their scripts.

Meowth, maybe we can work together to figure out something close. I'm trying but I can't get as close as the real games. However, we're using different programs but perhaps we can figure it out. Does RPG Maker support arrays? Because all we need is a 2 dimensional array and change some points the right way and we got it right there.
  #8    
Old September 11th, 2010, 06:35 AM
davidthefat
I Love C++
 
Join Date: Dec 2009
Age: 20
Gender: Male
http://pcg.wikidot.com/pcg-algorithm:dungeon-generation

First thing that popped up when I googles "dungeon generation" learn how to search for your self... And please don't tell me this "Thats useless, its not for GM/RPGMK"
“You have enemies? Good. That means you've stood up for something, sometime in your life.” Winston Churchill
  #9    
Old September 11th, 2010, 09:13 AM
Gmack's Avatar
Gmack
I'm back!
 
Join Date: Mar 2010
Location: Florida, USA
Gender: Male
Nature: Calm
Send a message via Windows Live Messenger to Gmack
You should be more specific when you're searching google
for that stuff. Like, instead of dungeon generator, you could
search rmxp dungeon generator, or Game Maker dungeon generator.
Official Blog :: http://gmacksblawg.wordpress.com/

Official Website :: http://gavinsblawg.webs.com/about
  #10    
Old September 11th, 2010, 09:26 AM
davidthefat
I Love C++
 
Join Date: Dec 2009
Age: 20
Gender: Male
Quote:
Originally Posted by Gmack View Post
You should be more specific when you're searching google
for that stuff. Like, instead of dungeon generator, you could
search rmxp dungeon generator, or Game Maker dungeon generator.
I disagree, the concept of a dungeon generator is universal. Its an idea/procedure. If you can code it in BASIC, you can do it in C++. Language does not matter.
“You have enemies? Good. That means you've stood up for something, sometime in your life.” Winston Churchill
  #11    
Old September 12th, 2010, 11:06 AM
Meowth's Avatar
Meowth
That's Right!
Community Supporter
 
Join Date: Jan 2007
Location: TEAM ROCKET WAREHOUSE
Age: 23
Gender: Male
Nature: Impish
Send a message via AIM to Meowth Send a message via Windows Live Messenger to Meowth
Quote:
Originally Posted by davidthefat View Post
I disagree, the concept of a dungeon generator is universal. Its an idea/procedure. If you can code it in BASIC, you can do it in C++. Language does not matter.
Not if you have no coding knowledge :/ It DOES make a big difference. I have a large variety of things I know how to do, from spriting to animating to video editing and many things in between, but coding for some people is not an option.

It matters because people like us can't get it working in our own programs, whether it's in GML or RGSS.
  #12    
Old September 12th, 2010, 03:20 PM
davidthefat
I Love C++
 
Join Date: Dec 2009
Age: 20
Gender: Male
Quote:
Originally Posted by Meowth View Post
Not if you have no coding knowledge :/ It DOES make a big difference. I have a large variety of things I know how to do, from spriting to animating to video editing and many things in between, but coding for some people is not an option.

It matters because people like us can't get it working in our own programs, whether it's in GML or RGSS.
I personally disagree with that statement... Ruby is so easy, it was meant for artists and game developers (game programmers are different) Scripting languages are for the developers to quickly prototype games and not hard code it in the game engine. Game programmers use C/C++ and sometimes Assembly but now they just use HLSL for shaders. Trust me, that is how it works in the real world, the game developers use scripting languages to change the game scenarios and stuff, the core stuff is for the programmers, which in this case is the Game Maker or RPG Maker.

Bottom line: Learn the language; its not hard nor will you lose talent in art or anything else. You just gain from the experience.
“You have enemies? Good. That means you've stood up for something, sometime in your life.” Winston Churchill
  #13    
Old September 12th, 2010, 04:44 PM
Meowth's Avatar
Meowth
That's Right!
Community Supporter
 
Join Date: Jan 2007
Location: TEAM ROCKET WAREHOUSE
Age: 23
Gender: Male
Nature: Impish
Send a message via AIM to Meowth Send a message via Windows Live Messenger to Meowth
Quote:
Originally Posted by davidthefat View Post
I personally disagree with that statement... Ruby is so easy, it was meant for artists and game developers (game programmers are different) Scripting languages are for the developers to quickly prototype games and not hard code it in the game engine. Game programmers use C/C++ and sometimes Assembly but now they just use HLSL for shaders. Trust me, that is how it works in the real world, the game developers use scripting languages to change the game scenarios and stuff, the core stuff is for the programmers, which in this case is the Game Maker or RPG Maker.

Bottom line: Learn the language; its not hard nor will you lose talent in art or anything else. You just gain from the experience.
I've been working with RMXP since I was 15, and I'm nearing 20 now. It's old, yet I still can't learn Ruby. I've been working with Game Maker even longer, since I was 12. The thing is, I can't code. I've tried for years, especially while hacking. I can hardly code HTML to save my life. For people like me, coding of any sort doesn't come easily. In fact, it'd probably create MANY more threads just like this, in instances where people who just can't understand the languages can't simply google the answer... they don't know what to look for.
  #14    
Old September 12th, 2010, 05:01 PM
davidthefat
I Love C++
 
Join Date: Dec 2009
Age: 20
Gender: Male
Quote:
Originally Posted by Meowth View Post
I've been working with RMXP since I was 15, and I'm nearing 20 now. It's old, yet I still can't learn Ruby. I've been working with Game Maker even longer, since I was 12. The thing is, I can't code. I've tried for years, especially while hacking. I can hardly code HTML to save my life. For people like me, coding of any sort doesn't come easily. In fact, it'd probably create MANY more threads just like this, in instances where people who just can't understand the languages can't simply google the answer... they don't know what to look for.
Oh I agree, there are people that get programming just like that (Me, started using C++ when I was 12 after I got out of the "Game maker phase") Im almost 17 now, I can say I am pretty proficient with it, Not yet advanced, but high intermediate. Personally I do not like taking the easy way out of anything, I learned that the hard way. I been trying to take the easy way out of everything, especially in school, thats not good, I haven't had an A in a class for a long time, all straight Bs... Now this year as a Junior I am aiming for straight A's but its pretty hard for me... LIke right now, Im on the computer while I have tons on HW... FML


Yea I do not like Copy and Pasters AKA Script Kiddies. I personally do not use the code I am copying unless I under stand 100% of it. That is the reason I moved away from Game Maker and moved onto C++.

I have always had the mentality that nothing in life is free. You have to earn it. I believe building from scratch builds character that will benefit you in life.
“You have enemies? Good. That means you've stood up for something, sometime in your life.” Winston Churchill
  #15    
Old September 12th, 2010, 05:16 PM
Meowth's Avatar
Meowth
That's Right!
Community Supporter
 
Join Date: Jan 2007
Location: TEAM ROCKET WAREHOUSE
Age: 23
Gender: Male
Nature: Impish
Send a message via AIM to Meowth Send a message via Windows Live Messenger to Meowth
We still need the Random Map script to work though for RMXP users :D Haha... really I've had it up for a while in my own thread on the front page for my MD game... but even with looking through the code I can't figure out how to get it to work. If only Poccil would answer about it, the best way to understand a piece of code from my experience is to ask the creator of it... but he never answered my email.

As for Game Maker, it'd be harder to find a "copy paster" version of a random map script for Game maker, because everyone is making their games differently I'd imagine.
  #16    
Old September 12th, 2010, 05:24 PM
DaSpirit's Avatar
DaSpirit
Mad Programmer
 
Join Date: Jul 2007
Location: New York City
Gender: Male
Nature: Quiet
I don't see what you guys are fighting about. After figuring out the basic syntax, you can learn any language easily, it's just figuring out the functions. I know C++ and some OpenGL with it, it's just I don't which functions to use and such. I'm only up to the point in OpenGL where I can only draw simple shapes, and I can't figure out how to load textures. Even if I learned how, I'm still missing experience. Thus, I will be looking for a C++ programming in the future to teach me and help me port some games I make.

When you have experience, you know which functions to use. This is where psuedo code comes in, just to start out programming somewhere. I'm sure many people don't program everything without thinking. They think of psuedo code in their mind and program it out. I'm only asking for mere psuedo code and looking at other types of code is in a way psuedo code.

Anyway, back to the subject, I have started making the dungeon generator on my own so far. I have only 2 rooms made and the game connect and path between them by itself. I think that there are multiple algorithms for each dungeon but I will only figure out the first one, from the first dungeon after debugging some of my functions. I might write a document saying my algorithms if I'm not selfish enough to keep them to myself.
  #17    
Old September 12th, 2010, 05:35 PM
Meowth's Avatar
Meowth
That's Right!
Community Supporter
 
Join Date: Jan 2007
Location: TEAM ROCKET WAREHOUSE
Age: 23
Gender: Male
Nature: Impish
Send a message via AIM to Meowth Send a message via Windows Live Messenger to Meowth
Congrats, I hope that we can do the same for RMXP soon.
  #18    
Old September 12th, 2010, 08:03 PM
davidthefat
I Love C++
 
Join Date: Dec 2009
Age: 20
Gender: Male
Quote:
Originally Posted by DaSpirit View Post
I don't see what you guys are fighting about. After figuring out the basic syntax, you can learn any language easily, it's just figuring out the functions. I know C++ and some OpenGL with it, it's just I don't which functions to use and such. I'm only up to the point in OpenGL where I can only draw simple shapes, and I can't figure out how to load textures. Even if I learned how, I'm still missing experience. Thus, I will be looking for a C++ programming in the future to teach me and help me port some games I make.

When you have experience, you know which functions to use. This is where psuedo code comes in, just to start out programming somewhere. I'm sure many people don't program everything without thinking. They think of psuedo code in their mind and program it out. I'm only asking for mere psuedo code and looking at other types of code is in a way psuedo code.

Anyway, back to the subject, I have started making the dungeon generator on my own so far. I have only 2 rooms made and the game connect and path between them by itself. I think that there are multiple algorithms for each dungeon but I will only figure out the first one, from the first dungeon after debugging some of my functions. I might write a document saying my algorithms if I'm not selfish enough to keep them to myself.
Thats what I have been saying the whole time I was part of this community; once you learn to program with one language, you can pick up on other languages easily. Well it is harder to go from Python to C++, but C++ to Python is easy as cake. So is C++ to Java, but the lack of pointers did trip me up abit. But LISP is another beast. I can tell you how to load textures, its not that complex. Personally I have not done far into OpenGL, because I was "too scared" to go farther. Now the only programming I have done in the past year was with robots. So I need to try programming a game sometime soon, but I don'e have time, after football season is another robotics season then after that is track season LOL I got too much stuff to do.


The bottom line, its not the syntax, but the programming that you need to learn. Some people have the programming mind, others don't. I got a 4 on the AP Test which is terrible IMHO. I should have gotten a 5, but as a sophomore taking that test, there were seniors in my grade that got 2s and 1s, which ironic.
Code:
Member *Davidthefat = new Davidthefat();
while(Davidthefat->GetMembershipStatus() == "Not Banned")
{
Davidthefat->Preach("C++");
Davidthefat->Bash("Script Kiddies");
}
“You have enemies? Good. That means you've stood up for something, sometime in your life.” Winston Churchill

Last edited by davidthefat; September 12th, 2010 at 08:09 PM.
  #19    
Old September 13th, 2010, 04:53 PM
davidthefat
I Love C++
 
Join Date: Dec 2009
Age: 20
Gender: Male



Well there you go
“You have enemies? Good. That means you've stood up for something, sometime in your life.” Winston Churchill
  #20    
Old September 13th, 2010, 05:56 PM
Yuoaman's Avatar
Yuoaman
Legen- wait for it...
Community Supporter
 
Join Date: Jul 2005
Location: Ontario, Canada
Age: 22
Gender: Male
Nature: Relaxed
Davidthefat, don't double post - the Edit button is in plain sight and should be used for these kind of things. I would also like it if you stopped posting these diatribes on how everyone should learn to code because it's the professional way it's done. It's just ********. Most of the people on here develop games as a hobby and have little interest in taking the time to learn the intricacies of a programming language just because you keep saying that it's the better way of doing things.

Please just let the coconuts do their jigs, okay?

Suit Up!
Awesome REGULAR MEMBER THAT OCCASIONALLY FREQUENTS FORUMS.

"pps new screenie" - No, really shut up yuoaman.

Haaave you read my LP?
Pokémon Quartz - The only one really worth reading.

What about my [Un]Abridged series?
Aquaman the Unabridged Parody Series - Language warning.

The Playbook: My Anime List | Raptr | BackLoggery | Twitter


83% of this signature is empty space.

-dary!
  #21    
Old September 13th, 2010, 06:16 PM
davidthefat
I Love C++
 
Join Date: Dec 2009
Age: 20
Gender: Male
Quote:
Originally Posted by Yuoaman View Post
Davidthefat, don't double post - the Edit button is in plain sight and should be used for these kind of things. I would also like it if you stopped posting these diatribes on how everyone should learn to code because it's the professional way it's done. It's just ********. Most of the people on here develop games as a hobby and have little interest in taking the time to learn the intricacies of a programming language just because you keep saying that it's the better way of doing things.

Please just let the coconuts do their jigs, okay?
Well there is no way to have dungeon generator without programming ;; Hey I was subscribed to him and he posted it couple hours ago, I thought it was perfect to post up here, Im trying help here. Personally if you are not the programmer trying to learn how to program something, don't even bother asking how to do it. You can't draw an algorithm and make it work; you need to program it. Ok I am saying at least learn the god damn Game Maker Language. If you are going to use a program, learn the program, don't expect anyone to spoon feed you anything. Scripting is part of Game Maker, I am not telling him to learn C++, hell I am telling him to program/script (whatever you wanna call it) himself. I gave him plenty of info on the concepts and the algorithm to do it. The OP has to take the step and the initiative to strive to program this. Well if he is not the programmer, why the hell would he be asking this quetion? Leave it up to the programmer to figure that out... Damn, if its you working alone, you bettter learn to program because you can't have a game without the code.


Sorry If I sound like flaming or something, I am raging brahs, if you want to make a game by your self with out a dedicated programmer, you better learn to program your self. Scripting, programming what ever you call it. Just because you are using Game Maker or RPG Maker, a game is not gonna come out of your butt like that, you have to work for it. No one will spoon feed you anything. Damn, personally I know I sound rude right now, but come on, think guys think...


Ok and I am guilty if not using the edit button, but I am not guilty for not spoon feeding him everything
“You have enemies? Good. That means you've stood up for something, sometime in your life.” Winston Churchill
  #22    
Old September 14th, 2010, 12:12 PM
DaSpirit's Avatar
DaSpirit
Mad Programmer
 
Join Date: Jul 2007
Location: New York City
Gender: Male
Nature: Quiet
Quote:
Originally Posted by davidthefat View Post
Personally if you are not the programmer trying to learn how to program something, don't even bother asking how to do it. You can't draw an algorithm and make it work; you need to program it.
Okay, that sort of insulted me. With none of your guys help, I already figured it all out. I created a path finding system myself too, I drew everything out in school and just transferred it into Game Maker. Aside from a couple of glitches, I have it all working, I made it create 2 little rooms randomly(it must be noted that I separated where the rooms could go into sectors). Then, I created 1 path going from each room the towards each other. If they are ever on the same x or y axis, they merge together to create a sort of curve. Then, I check if there is a path going from each room and if not, I repeat the process to create a path between the rooms over.

So yeah, maybe you guys can expect a post at the Drawing Boards for a Mystery Dungeon game next month. I still have a lot of work to do myself, after optimizing my room generation, I have to actually create the room as I'm only testing it as an array and simply drawing the array as the minimap to test the dungeon generation.

Oh and I simply posted this because I wanted to know if anyone else accomplished this task, and so I was going to ask them for some help but it turned out I didn't need it.
  #23    
Old September 14th, 2010, 05:04 PM
davidthefat
I Love C++
 
Join Date: Dec 2009
Age: 20
Gender: Male
Quote:
Originally Posted by DaSpirit View Post
Okay, that sort of insulted me. With none of your guys help, I already figured it all out. I created a path finding system myself too, I drew everything out in school and just transferred it into Game Maker. Aside from a couple of glitches, I have it all working, I made it create 2 little rooms randomly(it must be noted that I separated where the rooms could go into sectors). Then, I created 1 path going from each room the towards each other. If they are ever on the same x or y axis, they merge together to create a sort of curve. Then, I check if there is a path going from each room and if not, I repeat the process to create a path between the rooms over.

So yeah, maybe you guys can expect a post at the Drawing Boards for a Mystery Dungeon game next month. I still have a lot of work to do myself, after optimizing my room generation, I have to actually create the room as I'm only testing it as an array and simply drawing the array as the minimap to test the dungeon generation.

Oh and I simply posted this because I wanted to know if anyone else accomplished this task, and so I was going to ask them for some help but it turned out I didn't need it.
Good for you bro, thats the way you should do it. Honestly I ask for help as the last resort. That is what I want people to be doing; trying to solve the problem first before asking for help. I congratulate you for doing that; thank you.

Come on though, the part you quoted from me is common sense. If one is not an artist; he needs to practice to be an artist. Same goes for programming; one can not make a game without programming. So if making a game alone is the goal, learn to program. Easy as that.
“You have enemies? Good. That means you've stood up for something, sometime in your life.” Winston Churchill
Post Reply
Quick Reply

Sponsored Links


Advertise here
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 08:17 PM.

About Us
© 2002 - 2014 The PokéCommunity™, pokecommunity.com. Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.

Copyright
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com. PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator. Header artwork by Jordanice of deviantART.

Social Media
If you would like to stay up-to-date with us on the go, when we're down, or other such things, follow us on social media sites--most notibly Twitter, Facebook, and Google Plus--by clicking on the links provided.

Design presented by Peitharchia. Special thanks to Hiroshi Sotomura and Ausaudriel.