IrrMaker v0.7 [0.8 released!]

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
dudMaN
Posts: 111
Joined: Fri Mar 02, 2007 6:37 pm

IrrMaker v0.7 [0.8 released!]

Post by dudMaN »

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 :P) *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]:
Image

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.
dudMaN
Posts: 111
Joined: Fri Mar 02, 2007 6:37 pm

Post by dudMaN »

Sorry about the double post, made a little thing that converts the XML made by the editor to C++.

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
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

Do you have any screenies of the drag n drop weapons in action? Cuz all I see is transparent squares :P

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
Luke
Admin
Posts: 449
Joined: Fri Jul 14, 2006 7:55 am
Location: Australia
Contact:

Post by Luke »

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
dudMaN
Posts: 111
Joined: Fri Mar 02, 2007 6:37 pm

Post by dudMaN »

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 :oops:

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 :D

-dudMan
monkeycracks
Posts: 1029
Joined: Thu Apr 06, 2006 12:45 am
Location: Tennesee, USA
Contact:

Post by monkeycracks »

stringc mystring = "Tavor";
mystring = mystring + ".jpg";
doesnt work, could i have some help with that
You could just do this

Code: Select all

stringc mystring = "Tavor.jpg";
or

Code: Select all

stringc base;
stringc ext;
strinc final;

base = "Tavor"
ext = ".jpg"
final = base+ext;
final.c_str(); gets you the file when you're loading the texture.
dudMaN
Posts: 111
Joined: Fri Mar 02, 2007 6:37 pm

Post by dudMaN »

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
monkeycracks
Posts: 1029
Joined: Thu Apr 06, 2006 12:45 am
Location: Tennesee, USA
Contact:

Post by monkeycracks »

driver->draw2DImage();

Check the API for exact code
dudMaN
Posts: 111
Joined: Fri Mar 02, 2007 6:37 pm

Post by dudMaN »

so i just do:

driver->draw2DImage(new ITexture("Tavor.jpg"),new rect<s32>(0,0,0,0), new rect(x-20,y-20,x+20,y+20)

?

-dud

srry im such a dud :P
monkeycracks
Posts: 1029
Joined: Thu Apr 06, 2006 12:45 am
Location: Tennesee, USA
Contact:

Post by monkeycracks »

driver->draw2DImage(drv->getTexture("tavor.jpg"), position2d<s32>(xPos,yPos), rect<s32>(0,0,resx,resy), 0, SColor(255,255,255,255), false);
dudMaN
Posts: 111
Joined: Fri Mar 02, 2007 6:37 pm

Post by dudMaN »

THanks monkeycracks, ill find a tavor image or something and/or a lava image and have these up by tomorrow

-dudMan
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

stringc mystring = "Tavor";
mystring.append(".jpg");

Geez dont you ppl have intellisense :lol:
serial
Posts: 2
Joined: Mon Mar 19, 2007 6:24 pm

Post by serial »

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
How dare you call that poor person a monkey!!!!

lol. Anyway, I don't know who would bother, why not just program the C++ yourself? And anyway, IRRLICHT 2ux, makes games into pixles.
dudMaN
Posts: 111
Joined: Fri Mar 02, 2007 6:37 pm

Post by dudMaN »

lol serial.

btw, lemme take a guess at your name..

im sensing a K and a P... wait no your part of something like that... hmm... maybe.... starts with a J? Jo...n.. something like that?

how come irrlicht 'sux'? how does it make games into pixels?

-dudMaN
serial
Posts: 2
Joined: Mon Mar 19, 2007 6:24 pm

..

Post by serial »

What's up with you? You always know who I am, whatever alias I use :P

Anyway, IRRLICHT doesn't "sux", it 2ux. And by "makes games into pixles", I mean it makes games easier to make.
Post Reply