Page 1 of 4

Eye of the Beholder IV (Ver 0.011) Level Editor (Ver 0.011)

Posted: Tue Sep 13, 2011 11:22 pm
by takis76
Here I will have my updates , my graphics , my adventures , my level editors and everything about my
rpg project, "Eye of the Beholder IV" for all funs.

I translate my existing code from DarkBasic to PureBasic and I make more improvements that the DarkBasic was not allowed and had limits. The engine will be much faster and much better.

Sometime I will release and an ebook about how my engine works for people who interesting to create another dungeon crawler game and use the ideas of my engine.

I am planning in the future to create the Dungeon Master 3.

I don't have Mac and Linux here to make and one port for these operating systems.


NEWS 28/12/2011
First of all Happy New Year (Merry Christmass little late) :oops:
I have one small incomplete gift , but there will be more surprises in the 2012.

I have created the version 0.008 , the engine changed a little improved and the interface was changed. I increased my resolution to 640x480 fullscreen.
This version is much different than previous one , because I have integrated the level editor mechanics. This version seems to be earlier than the Ver (0.007) but in fact there are more mechanics which implements some new scripts and the Level Editor engine.

The level editor now work perfect and interacts with my Engine now there are 2 Engines (1 Eye of the Beholder 4) (2 The level Editor).

The level editor is or (will be) a complete WYSIWYG (What.You.See.Is.What.You.Get) interface adventure creator.
What that means , a complete Adventure Creation Suit , is not only create or change the maps of the game , but change the game completely. You can change everything , the maps , the quests , the musics , the monsters , events , sound effects , spells , the interface , the players , the game story. This game will be the dream of the Dungeon Crawler gamers.
All Series of Eye of the Beholder have the lack of graphics and level editor , this will fill all the gaps.

With the current version of the Adventure Editor , you can create maps , put walls , secret buttons , fake walls some wall decoration , window and tapestry. You can also put doors (Locked and unlocked) and stairs.
There are 2 Wallsets ready and you can change the party adventure entry.
You can save only the map and test it in the game. The editor creates one script .txt file (adventure.txt) and the game engine load this file and creates your adventure.

The current version saves only your adventure , you can't load it back in the editor yet. So make everything you want , but you can't load it back and don't need to be the rpg artist yet. In future more complete versions will be realised when whole game will complete and I have decide what I wan't to create , there will be and the level loader in the adventure editor.

I am not stable about my opinion yet , this interface (The game one and the editor one) I changed it 9 times till to fulfill my desire.

Look one screenshot about the new game interface and the adventure editor.

The new game Interface.
Image

The level editor.
Image

Save your adventure in level editor.
Image

Download this version of my game with the adventure editor included from here:
http://www.commercial-center.com/eob4_p ... _0.011.zip

You move your party with arrow keys(keypad) and you are turning with (7) and (9) the same game play as original series.
Soon you will see and more interesting things.

I prepare the game in 2 languages (Greek and English)
The finished game will be translated in (Greek,English,French,German,Italian,Spanish).

Everything works perfect here in all windows like operating systems.

The items on the floor are now disabled for this version until the level editor item scripts and mechanics will be finished.

Visit the post often... I wish you happy holidays , many wishes to you and to your families , health and happiness


Game History:
v0.001 - v0.001c : Screen Resolution & windows 7 incompatibility bugs fixed.
v0.002 - v0.002b : Complete inventory system with infinity items on the floor with linked lists added. Millions bugs fixed.
v0.003 : One door added. You can hear the door near and far , Sound pan was fixed in version 0.005.
v0.004 - v0.004a : Second door added , secret button added , illusion wall added , rayal tapestry added , castle window added. Wrong map size bug fixed.
v0.005 : Stairs added , Background Music added , party now change levels , each level have different background music. 3D sounds fixed.
v0.006 : Alcoves added.
v0.007 : One monster added "Mummy" with basic monster Artificial Intelligence, no player battle yet only monsters.
v0.008 : Level editor scripts added in the engine , interface was changed.
v0.009 - v0.011 : Animated and Static decors added to Level Editor Scripts.

Re: Eye of the Beholder IV

Posted: Tue Sep 13, 2011 11:32 pm
by Tenaja
Looks like a neat start.

It froze up every time I clicked with the mouse.

Re: Eye of the Beholder IV

Posted: Tue Sep 13, 2011 11:47 pm
by takis76
Why it frozen when you click with the mouse?
Here everything works perfect.

What operating system you have? If you have windows 7 , I will compile separate version for windows 7 users.

Not yet 64bit , I don't have 64bit OS. :(

Re: Eye of the Beholder IV

Posted: Wed Sep 14, 2011 12:04 am
by swan
Win 7 64bit - running exe just produces full white screen which only way to exit is to close task. :(

Re: Eye of the Beholder IV

Posted: Wed Sep 14, 2011 12:18 am
by takis76
Until post a separated version for windows 7 users. Only 32Bit or XP Users will able to play for now.

Tomorrow , I will experiment with some windows 7 versions of my demo. When the windows 7 version will be out , new download link will appear in the first post. (Sorry for now).

I don't know if I need to compile my game with 64Bit version of Purebasic for 64bit users , I don't have 64bit operating system here :(

Re: Eye of the Beholder IV

Posted: Wed Sep 14, 2011 12:26 am
by PMV
Like i said before, no need for 64-Bit.
But i doesn't know what you are doing... it needs to be in XP compatibility
mode to run under windows 7. But then, really nice retro-graphics.

MFG PMV

Re: Eye of the Beholder IV

Posted: Wed Sep 14, 2011 12:38 am
by Tenaja
Tenaja wrote:Looks like a neat start.

It froze up every time I clicked with the mouse.
This is with 32-bit Windows 7.

Re: Eye of the Beholder IV

Posted: Wed Sep 14, 2011 12:44 am
by J. Baker
On my Windows XP (Home) 32bit with Nividia GT220... I only saw a white screen at first. Then I saw a black screen with some text at the top but no images. :?:

Re: Eye of the Beholder IV

Posted: Wed Sep 14, 2011 12:59 am
by takis76
Hmm there is problem here as I see.
Might the problem is , I load my graphics and I don't say in which directory the game will search for the graphic files.

But I don't tell to my program to search in any directory , if you put the game in any directory you like.
The game load the files from the current directory you are.

Try and other people to see where is the problem , and I will try my game and in other computer , because this perfect computer I have here , doesn't drops me any error.

Might is the problem about where the game loads the files or the font loading functions.

I will post other version , until find where my problem is. The next version when is ready will be 0.001a

Re: Eye of the Beholder IV

Posted: Wed Sep 14, 2011 1:03 am
by J. Baker
Nevermind. I ran the executable from the zip thinking the graphics were embedded. But I did see a white screen first but then it loaded fine. ;)

Re: Eye of the Beholder IV

Posted: Wed Sep 14, 2011 4:22 am
by Kuron
Very impressive, takis76! I am really looking forward to this!

Re: Eye of the Beholder IV

Posted: Wed Sep 14, 2011 10:12 am
by takis76
Guys ,

I found here some windows 7 and I compiled my game.
I have the same problem , when the game starts , you see normal loader and the starting screen and if you press
with the mouse everywhere , then the screen turns white and if you press ESC you terminate the program.

I changed the resolution from 640x400 to 640x480 and the game worked with some flickering on the screen.

The problem might be with these code:

Code: Select all

OpenWindow(#Program_Window, 0, 0, 0, 0, "Game", #PB_Window_BorderLess | #PB_Window_ScreenCentered | #PB_Window_Maximize)
OpenWindowedScreen(WindowID(#Program_Window), 0, 0, 640, 400, 1, 0, 0, #PB_Screen_SmartSynchronization)
I tried any Synchronization , only the SmartSynchronization the screen wasn't flick but when you press
double clik with your mouse the program stucks.

Only the resolution 640x480 works in windows 7 with openscreen no
OpenWindowedScreen command. The open windowed screen command opens one hidden window behind and hangs the program.

In my windows XP the 640x400 resolution works with the trick you gave me.
But in windows 7 and others the trick is not working. So , I need to change the resolution and change
and the interface and a lots of code , because I have 640x80 pixels black area.

And I need to find some idea to use this new area , might I will add and one more player or put some
other game instruments , I will try to decorate the interface and look good in the eye.

Just tell me if the 0.001a version worked.

Re: Eye of the Beholder IV

Posted: Wed Sep 14, 2011 10:24 am
by Kuron
takis76 wrote: I changed the resolution from 640x400 to 640x480 and the game worked with some flickering on the screen.
Windows 7 (and likely Vista, too) won't do 640x400 fullscreen.
takis76 wrote:

Code: Select all

OpenWindow(#Program_Window, 0, 0, 0, 0, "Game", #PB_Window_BorderLess | #PB_Window_ScreenCentered | #PB_Window_Maximize)
OpenWindowedScreen(WindowID(#Program_Window), 0, 0, 640, 400, 1, 0, 0, #PB_Screen_SmartSynchronization)
You are opening two windows, the windowed screen and a regular window. Look at the included PB example called windowed screen. It will show you how to do it right.

Re: Eye of the Beholder IV

Posted: Wed Sep 14, 2011 2:11 pm
by takis76
You are opening two windows, the windowed screen and a regular window. Look at the included PB example called windowed screen. It will show you how to do it right.
I saw the windowed screen example from Purebasic. I thing I made it right!!

I use almost the same code.

I added this in the top of my program

Code: Select all

If InitSprite() = 0 Or InitKeyboard() = 0 Or InitMouse() = 0
  MessageRequester("Error", "Can't open the sprite system", 0)
  End
EndIf

If InitSound() = 0
  MessageRequester("Error", "Initializing sound system", 0)
  End
EndIf

If OpenWindow(0, 0, 0, 640, 400, "Eye of the Beholder 4.", #PB_Window_BorderLess | #PB_Window_Maximize | #PB_Window_ScreenCentered)

  If OpenWindowedScreen(WindowID(0), 0, 0, 640, 400, 1, 0, 0)
  ;  LoadSprite(0, "Data/PureBasicLogo.bmp") ;I remove this , I don't load and graphic here
  Else
    MessageRequester("Error", "Can't open windowed screen!", 0)
    End
  EndIf

EndIf        

Is the same instead it uses ifs before opens window and windowed screen , and in this case 2 windows opened.
The first have white screen and the second is my game fullscreen window.

And in my main gameloop (Repeat until stop my game) I added this.

Code: Select all

Repeat
  Repeat
    ; Always process all the events to flush the queue at every frame
    Event = WindowEvent()
    
    Select Event
      Case #PB_Event_CloseWindow
      Stop_Program=1
    EndSelect     

 Until Event = 0

;blah blah here are the codes of the main game


    If KeyboardPushed(#PB_Key_Escape)
    stop_program = 1
    EndIf

Until Stop_Program=1
This works as it was worked before , I don't know where is the difference.

I update the links above. v0.001b is out.

How to make the first white window which opens black?
And how do I hide this hourglass icon , which appears with the white window?
And how to minimize and maximaze my whindow when I press ALT+TAB?

I know too many questions here but I am looking in the example and I didn't find something about ALT+TAB.

Re: Eye of the Beholder IV

Posted: Wed Sep 14, 2011 5:03 pm
by Zach
I don't think you need to be opening two windows, but I Will leave that to more experienced people to help you sort out.


Your Windows 7 executable works for me, it was totally awesome. I wish I had even a fraction of the skill to do that stuff, heh. I know you are porting from Dark Basic, but still you've only just come to PB and I'm still pissing around with my Tools, haven't even started on my engine... jealousy :oops:


Keep up the good work.