Page 1 of 2

Slot Machine BETA 2 last chance to test

Posted: Thu Feb 10, 2011 9:16 pm
by Rook Zimbabwe
You can download here:

OGRE version: NEW LINK!http://www.bluemesapc.com/Downloads/SPAD3z-beta2.zip

{{ NEW FILE IN LINK is LAST BETA VERSION... now if I can just figure out a way to make some money off of this somehow!
:mrgreen:
{{EDIT INSERT}}
OK Documentation is as follows:

SPACEBAR spins the wheels and starts the process (basically sets up your poker hand)
ESC quits

Thats it for the ALPHA... just needed to make sure the grpahics show on nVidia and ATi cards hoping to find no issues for on board simpler models as well as the higher end units...

BETA will have more sounds, betting and WIN noises and MIGHT be in window instead of fullscreen... problem with that seems to be if window is minimized it gets funky on some of the older graphics cards.

{{/EDIT INSERT}}

When I included the Engine3d.dll file the ZIP file size jumped up to 2.7megs not loving that too much but have to finish the MP3D file and then we can compare.

(The engine3d.dll is in the COMPILERS folder in your Purebasic main folder...)

Admin mode is a default as I spen a lot of time working on my SQL server software for my Point of Sale system... nothing insidious happens in the program.
I cannot get the compiled version to run as it insists I need DX9 installed on my computer... but I have it! I also try to run it in the same directory where D3DX9_38.dll is (where I wrote it!) and it still won't run??? What am I missing? (also need testeers...
and NO you cannot win with a flush... every other poker hand... still working out STRAIGHT though... :mrgreen:

Re: Slot Machine Alpha needs testing

Posted: Thu Feb 10, 2011 11:21 pm
by swan
Vista64bit has same problem. And I know I have DX9 ...

Re: Slot Machine Alpha needs testing

Posted: Fri Feb 11, 2011 6:16 am
by Mohawk70
Same here, I just get the error message ". . . Apparently I cannot init DX9 on your CPU . . .". XP Pro SP3 - DirectX 9 install verified and tested OK !

Re: Slot Machine Alpha needs testing

Posted: Fri Feb 11, 2011 7:15 am
by LuCiFeR[SD]
firstly, I would guess you have forgotten to package engine3d.dll. Then I suspect you have hardcoded a path to something. which probably doesn't exist on other peoples machines.

is there a reason for forcing it to run with administrator privileges?

maybe some missing files too?

Re: Slot Machine Alpha needs testing

Posted: Fri Feb 11, 2011 8:47 am
by IceSoft
I think he is using the MP3D engine (not the nativ Ogre stuff)

Re: Slot Machine Alpha needs testing

Posted: Fri Feb 11, 2011 9:37 am
by LuCiFeR[SD]
oh right? I only mentioned it cause he has been asking a lot of ogre related questions :P

/me slaps himself with a big stupid stick with stupid written all over it :)

Re: Slot Machine Alpha needs testing

Posted: Fri Feb 11, 2011 10:18 am
by DarkDragon
Works very well with x86 version of "Engine3D.dll". The meta files are zip files ;-) .

Re: Slot Machine Alpha needs testing (updated 1)

Posted: Fri Feb 11, 2011 10:17 pm
by Rook Zimbabwe
Any issyes seen can y'all please note the GFX card you got and if sounds (currently only slight clicking noise when wheels spin!)

@Daniel: Shhhhh thats a secret! :wink:

Re: Slot Machine Alpha needs testing (updated 1)

Posted: Sat Feb 12, 2011 9:29 pm
by Zach
Can we have some documentation on what is supposed to be functional?

Currently it only responds to me hitting the spacebar, the wheels spin and then stop on some cards.

Your "Window" elements appear to have X's for closing, etc although the one at the top for CASH that says (To be finished) is cut off and looks like the title of the window is being overlapped by the edge where the X is supposed to be.

I also have no mouse functionality / cursor (not sure if its supposed to show up or not)

Otherwise, I guess it looks OK.. Scales about as well as can happen, on my 23" LED LCD @ 1920x1080p

Re: Slot Machine Alpha needs testing (updated 1)

Posted: Sat Feb 12, 2011 11:43 pm
by Mohawk70
Same as Zach - seems to work fine. Where did you get the card images from ? There the nicest looking playing card graphics I've seen ! Is a complete deck available & are they free ? If not free, what is the cost ?

Re: Slot Machine Alpha needs testing (updated 1)

Posted: Sun Feb 13, 2011 7:26 am
by Rook Zimbabwe
SPACE - Spin
ESC - QUIT

This is the ALPHA version... notes in 1st post updated as well... I want to make sure there are no issues in graphics cards at the moment. The GUI is CEGUI and though I have visited the CEGUI site it appears I can only get 2 GUI "themes" to work in PB and all the others simply CRASH.

No mouse... sorry

Finalized version will be finished maybe tuesday as I am taking monday off for the wife!

Re: Slot Machine Alpha needs testing (updated 1)

Posted: Sun Feb 13, 2011 9:45 am
by DarkDragon
The sound is a bit weird (trtrtrtrtrtrtrtrtrtrtrtr doesn't describe it very well .. its more like a weapon of a GameBoy or C64 game).

Re: Slot Machine Alpha needs testing (updated 1)

Posted: Sun Feb 13, 2011 2:56 pm
by Nituvious
I was able tun run the game with my laptop, it seemed to run fast and smooth. I will test it on my craptop when I get a chance.
How did you get around the SetGadgetState3D() bug if you don't mind my asking.

Re: Slot Machine Alpha needs testing (updated 1)

Posted: Sun Feb 13, 2011 5:19 pm
by Rook Zimbabwe
I psychically reset the picture each and every time a user runs the program... oh wait... nope I only do that BEFORE I take the meds... :wink:

I reset the picture by recalling the control withthe same #HANDLE in the same location but with a different texture. I have all those textures (JPG) zipped into metadata.meta and loaded as textures when program starts... they are only about 5k each so no real time lag with current processor tech (and there are only 14 of them if you count the joker and the back... You can't draw a joker though... improves the houses odds that way!

Since I use the same #HANDLE I don't think I have more than 1 imagegadget... I am (possibly wrongly) assuming that the billboard/gadget is created new every time I call it... :mrgreen:

I just wish I could get a different CEGUI theme to work!

Re: Slot Machine Alpha needs testing (updated 1)

Posted: Sun Feb 13, 2011 9:38 pm
by Comtois
Rook Zimbabwe wrote:I just wish I could get a different CEGUI theme to work!
Using this archiv http://www.purebasic.com/Ogre1.6.zip and this code, i can get WindowsLook to work.

to change Font Replace :
SetGUITheme3D("WindowsLook", "")
by
SetGUITheme3D("WindowsLook", "DejaVuSans-10")

Code: Select all

IncludeFile "Screen3DRequester.pb"

If InitEngine3D()

  InitSprite()
  InitKeyboard()
  InitMouse()

  Add3DArchive("Data\"          , #PB_3DArchive_FileSystem)
  Add3DArchive("GUI\", #PB_3DArchive_FileSystem)
  Add3DArchive("GUI\schemes", #PB_3DArchive_FileSystem)
  Add3DArchive("GUI\imagesets", #PB_3DArchive_FileSystem)
  Add3DArchive("GUI\fonts", #PB_3DArchive_FileSystem)
  Add3DArchive("GUI\looknfeel", #PB_3DArchive_FileSystem)
  Add3DArchive("GUI\layouts", #PB_3DArchive_FileSystem)

  If Screen3DRequester()
    ;-Camera
    CreateCamera(0,0,0,100,100)
    SetGUITheme3D("WindowsLook", "")
    OpenWindow3D(0, 0, 0, 320, 150, "ButtonGadget3D")
    ButtonGadget3D(0, 10, 50, 300, 40, "Bouton standard")
    ButtonGadget3D(4, 10, 95, 300, 40, "Bouton à bascule", #PB_Button_Toggle)
    ShowGUI(255,1)
   
    Repeat
      Repeat :    Event = WindowEvent3D() :  Until Event = 0
       
      ExamineKeyboard()
   
      If ExamineMouse()
        InputEvent3D(MouseX(),MouseY(),MouseButton(#PB_MouseButton_Left),"")
      EndIf

      RenderWorld()
      Screen3DStats()     
      FlipBuffers()
    Until KeyboardPushed(#PB_Key_Escape) Or Quit = 1
  EndIf
   
Else
  MessageRequester("Error", "The 3D Engine can't be initialized",0)
EndIf