Author Topic: 8er MagicSquare  (Read 10538 times)

0 Members and 1 Guest are viewing this topic.

JRS

  • Guest
Re: 8er MagicSquare
« Reply #15 on: February 02, 2011, 12:24:25 PM »
Charles,

Your example doesn't work on my box. A small window tries to open (no content) then closes. Nothing left running according to ps/top.

I even tried to recompile both .bas files. (no errors reported)

The 3D example included worked.

.
« Last Edit: February 02, 2011, 12:36:48 PM by JRS »

Charles Pegge

  • Guest
Re: 8er MagicSquare
« Reply #16 on: February 02, 2011, 12:31:56 PM »
That happens when the media folder (containing maps images and sound) is not alongside the magic square program. Maybe the best way is to copy these new files into the original magic8er folder.

Charles

JRS

  • Guest
Re: 8er MagicSquare
« Reply #17 on: February 02, 2011, 12:35:12 PM »
I already have the media folder in the same directory as your example. I had to copy the Oxygen.dll (couldn't find it) and copied the A.dll for good measure. No luck yet.

Charles Pegge

  • Guest
Re: 8er MagicSquare
« Reply #18 on: February 02, 2011, 01:07:58 PM »
John,

You should be able to run Magic8erWS.exe as a standalone. It only requires the media file which itself contains:
clic.wav
won.wav
number.bmp

I've tested it on both platforms here.

Glad the 3D demo worked anyway. This show the basic techniques work on your system. You have even got the correct "times" font I see :)

Charles
« Last Edit: February 02, 2011, 01:09:46 PM by Charles Pegge »

JRS

  • Guest
Re: 8er MagicSquare
« Reply #19 on: February 02, 2011, 01:17:37 PM »
Please post a complete set of files for this. I don't have those files in the original Magic Squares media folder.

 

Charles Pegge

  • Guest
Re: 8er MagicSquare
« Reply #20 on: February 02, 2011, 01:24:24 PM »
I think you got the media file from earlier 5x5 magic spquare.

Here is the3x3 one with the programs.

Charles

[attachment deleted by admin]
« Last Edit: February 02, 2011, 01:45:45 PM by Charles Pegge »

JRS

  • Guest
Re: 8er MagicSquare
« Reply #21 on: February 02, 2011, 02:01:24 PM »


When I close the game I no longer have a mess on my desktop.

Thanks!


Charles Pegge

  • Guest
Re: 8er MagicSquare
« Reply #22 on: February 02, 2011, 03:03:55 PM »

Thanks for testing John.

Don't let the puzzle drive you mad. I am sure this is not Peter's intention :)

I see that WineTricks involves using a script. I am not entirely sure what to do with it in order to get the FontPacks.

In windows we are not exposed to these mysterious incantations.

Charles

JRS

  • Guest
Re: 8er MagicSquare
« Reply #23 on: February 02, 2011, 03:13:15 PM »
Use System->Synaptics Installer to install Winetricks. (free candy store)

I may have installed the Windows core fonts package when I had Crossover installed. I know they had a option on their configuration utility to install fonts, COM and other Windows specifics. The only thing I didn't like about Crossover is the bottle scheme to encapsulate a Windows environment. It's hard to say which is better as they are both eating off of the same plate.
 
« Last Edit: February 02, 2011, 04:06:17 PM by JRS »

Peter

  • Guest
Re: 8er MagicSquare
« Reply #24 on: February 03, 2011, 07:37:12 AM »
Hi,

try this for Linux/Wine.

/* Linux Test by Peter  Feb o3/2o11 */

Code: [Select]
Include  "Func.inc"

Dim hdc as long
Dim x, y, r, alpha as single

SetWindow "o-o",800,600,ws_dlgframe
hdc = GetDC(sys_hwnd)

r = 2.5
While EscKey() =0
For alpha=0 To 360   
x = r*cos(alpha)*100
y = r*sin(alpha)*100
DrawBox hdc,x+400,y+270,2,2,RGB(Rand(64,255),Rand(64,255),Rand(64,255))
DrawBox hdc,x+400,y+270,4,4,&h0000FF
DrawBox hdc,x+400,y+270,6,6,RGB(Rand(64,255),Rand(64,255),Rand(64,255))
Next
DoEvents
r = r - 0.1
iF trunc(r) =-1.0 Then r= 2.5
Wend

Charles Pegge

  • Guest
Re: 8er MagicSquare
« Reply #25 on: February 04, 2011, 03:59:36 AM »
Hi Peter,

This test works in Linux without dumping pixels. It performs the same as in Windows.
I tested it with Alpha028 and your original func,inc but with the SendMessageA correction.

Charles