IrrMaker v0.7 [0.8 released!]
IrrMaker v0.7 [0.8 released!]
Hi!
After all my question asking, ive made a simple D&D editor in irrlicht. You can drag and drop entities(weapons, objects, enemies, etc), and Fragments(little pieces of ground/earth).
It might not be much yet, but i've only been working on it for 2 days. EDIT: now about 4 days of actual development
What was added in 0.8:
-Grid Snapping
-Real Images(no dumb transparent squares)
-Changed fragment size from 20 to 50, takes much less time to fill a level now.
-Minor other improvements
What needs to be done till 0.9:
-Add dragging(add multiple frags/entities by dragging the mouse)
-Get build game working so you can play your games
-Dynamic entity sizes(so taverns dont show up the same size as gaurds in the editor ) *Done*
What to add after that to get to 1.0:
-More entities and fragments
Controls:
Right click- drop object
Click the buttons in the "window"s to select items. Build Game is broken =(
IRC Chat:
#IrrMaker on irc.freenode.net
Please join and chat
Screenshot[s]:
Downloads:
NOTE: Please dont tell any people that arent members of the forum about this, i plan to sell it once it's finished =)
Linux v0.8 binary
-dudMan
After all my question asking, ive made a simple D&D editor in irrlicht. You can drag and drop entities(weapons, objects, enemies, etc), and Fragments(little pieces of ground/earth).
It might not be much yet, but i've only been working on it for 2 days. EDIT: now about 4 days of actual development
What was added in 0.8:
-Grid Snapping
-Real Images(no dumb transparent squares)
-Changed fragment size from 20 to 50, takes much less time to fill a level now.
-Minor other improvements
What needs to be done till 0.9:
-Add dragging(add multiple frags/entities by dragging the mouse)
-Get build game working so you can play your games
-Dynamic entity sizes(so taverns dont show up the same size as gaurds in the editor ) *Done*
What to add after that to get to 1.0:
-More entities and fragments
Controls:
Right click- drop object
Click the buttons in the "window"s to select items. Build Game is broken =(
IRC Chat:
#IrrMaker on irc.freenode.net
Please join and chat
Screenshot[s]:
Downloads:
NOTE: Please dont tell any people that arent members of the forum about this, i plan to sell it once it's finished =)
Linux v0.8 binary
-dudMan
Last edited by dudMaN on Sat Mar 24, 2007 8:31 pm, edited 9 times in total.
Sorry about the double post, made a little thing that converts the XML made by the editor to C++.
=)
-dud
Code: Select all
using namespace irr; // irrXML is located
using namespace io; // in the namespace irr::io
#include <string> // we use STL strings to store data
// in this example
void convert(std::string e, int x, int y, int z) {
FILE f;
f = fopen("COMPILED.cpp");
fwrite(f, [irr code to loadmesh mesh=e]);
fwrite(f, setPosition(e,x,y,z) );
fclose(f);
}
void main()
{
// create the reader using one of the factory functions
IrrXMLReader* xml = createIrrXMLReader("COMPILED.xml");
// strings for storing the data we want to get out of the file
std::string modelName;
std::string x;
std::string z;
std::string fragType;
// parse the file until end reached
while(xml && xml->read())
{
switch(xml->getNodeType())
{
case EXN_TEXT:
// text is handled in EXN_ELEMENT
case EXN_ELEMENT:
if (!strcmp("Entity", xml->getNodeName()))
modelName = xml->getAttributeValue("model");
x = xml->getAttributeValue("x");
z = xml->getAttributeValue("z");
convert_e(modelName,x,0,z);
else
if (!strcmp("messageText", xml->getNodeName()))
fragType = xml->getAttributeValue("model");
x = xml->getAttributeValue("x");
z = xml->getAttributeValue("z");
convert_f(fragType,x,0,z);
break;
}
}
// delete the xml parser after usage
delete xml;
}
-dud
Do you have any screenies of the drag n drop weapons in action? Cuz all I see is transparent squares
Anyway good job should make developing RPGs easier once you have the grid snap working. (Which shouldnt be very hard, I recommend dividing the position by 100, casting to an int, then back again and multiply by a hundred, this will allow the compiler to round the number for you.)
If you want, i can try to implement that myself if you gimme the source.
Cheers
Anyway good job should make developing RPGs easier once you have the grid snap working. (Which shouldnt be very hard, I recommend dividing the position by 100, casting to an int, then back again and multiply by a hundred, this will allow the compiler to round the number for you.)
If you want, i can try to implement that myself if you gimme the source.
Cheers
try, http://www.fileden.com/ it has very good hosting, you can just upload files, or register for free for even better hosting.
if you register:
500.0 MB space (max single file size is 50 megabytes) with 20.0 GB Bandwidth
and http://imageshack.us/ is good for images
if you register:
500.0 MB space (max single file size is 50 megabytes) with 20.0 GB Bandwidth
and http://imageshack.us/ is good for images
Luke- Hey. i'm uploading it to googlepages now so i should have a Linux download later. dunno about source though..
BlindSide- the transparent squares are placeholders because i dont actually have a 1inch x 1inch sprite of a tavor =) also,
stringc mystring = "Tavor";
mystring = mystring + ".jpg";
doesnt work, could i have some help with that
and ill try to do that grid snapping sometime today. EDIT: it's done but you hav to click at the bottom corner to place it right. ill just do
right click= place with grid snap
left click= place without grid snap
thanks for the feedback guys
-dudMan
BlindSide- the transparent squares are placeholders because i dont actually have a 1inch x 1inch sprite of a tavor =) also,
stringc mystring = "Tavor";
mystring = mystring + ".jpg";
doesnt work, could i have some help with that
and ill try to do that grid snapping sometime today. EDIT: it's done but you hav to click at the bottom corner to place it right. ill just do
right click= place with grid snap
left click= place without grid snap
thanks for the feedback guys
-dudMan
-
- Posts: 1029
- Joined: Thu Apr 06, 2006 12:45 am
- Location: Tennesee, USA
- Contact:
You could just do thisstringc mystring = "Tavor";
mystring = mystring + ".jpg";
doesnt work, could i have some help with that
Code: Select all
stringc mystring = "Tavor.jpg";
Code: Select all
stringc base;
stringc ext;
strinc final;
base = "Tavor"
ext = ".jpg"
final = base+ext;
-
- Posts: 1029
- Joined: Thu Apr 06, 2006 12:45 am
- Location: Tennesee, USA
- Contact:
-
- Posts: 1029
- Joined: Thu Apr 06, 2006 12:45 am
- Location: Tennesee, USA
- Contact:
How dare you call that poor person a monkey!!!!dudMaN wrote:Thanks monkeycracks, will do.
how do i make driver->draw2DRectangle(SColor(255,255,0,0),rect<s32>(x-20, y-20, x+20, y+20)); draw "tavor.jpg" instead of a red square?
when i finish that, i could call this v0.8
-dudMan
lol. Anyway, I don't know who would bother, why not just program the C++ yourself? And anyway, IRRLICHT 2ux, makes games into pixles.