Jump to content

Recommended Posts

Posted

Error!??

First error I found:

I chose pieces and named both player. I click on roll. I clicked on buy curent property. I clicked on Add House. I didn't have enough money or because I don't own all 3 properties, it didn't work. Game Froze.

Second error I found:

I landed on Chance the second time i played. I click on End Turn. Was I supposed to click on the Chance Card pile? There should be some kind of notification to tell you that you're on Chance and you must draw a card, and the End Turn button shouldn't work until you've drawn... or do the cards not currently work? Maybe a GUI that pops up with a picture of a random card, then it maybe it makes the $Card1 variable equal 1 so it knows not to use that card again until all of the card variables equal one (just an example variable I haven't viewed source).

Third error I found:

Not sure where this one came from? (Look at attached image)

EDIT: Can't upload image... Dunno why?

[Error]

AutoIt Error

Line 0 (File "C:\Documents and Settings\..... Monopoly Game\Board.exe")

If $numofhouses1 <= $numofhouses2 And $numofhouses1 <= $numofhouses3 Then

If ^ERROR

Error: Variable used without being declared.

[/error]

dude you posted 4 times lol

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

  • Replies 58
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

Past Go doesnt work, and after like 2 turns on community chest I got my answers. and i cant make any money ;)

Posted

Past Go doesnt work

Forgot about that part. I will work on that.

and after like 2 turns on community chest I got my answers. and i cant make any money

What the hell does that mean?? Turns take like 2 seconds... Community chest doesn't work yet.

What goes around comes around... Payback's a bitch.

Posted

Cool. This is probably getting you some good programming practice.

Now...here is what happens when I play...

I landed on Chance a number of times and did not get a card.

I landed on Short Line and bought the property but it showed I bought Pennsylvania Ave instead. I also noticed if the window size is changed it moves the pieces.

When I rolled from Short Line I got 4+4 and landed on Community Chest but should have landed on Baltic Ave...unless of course I was actually on Penn. Ave. which seems likely since the game let me buy Penn Ave when I was on Short Line.

Suggestions:

Can you make it so that each player can only have one specific piece? It got confusing with the computer and me having the same piece...or give them different colors if they have to be the same.

Could you have a log window that would display [player] - [What that player did]. It might help make sense of some of the odd things happen but I have to play it more to get the gist. I seem to draw a community chest card when landing on chance or I don't get a chance or community chest card at all sometimes.

I got an error after about 4 moves and not buying any property...don't know how to attach the window screen print so will type it.

***************************************************

AutoIt Error

Line 0 (File "[file path to board.exe]")

If $currentproperties[$propertynum]=0 Then Return 0

If $currentproperties[^ERROR

Error: Array variable subscript badly formed

***************************************************

Also, (not trying to be a spoil sport) I'd be cautious about the copyrights...I don't know if there are any issues in this area since it is free.

I will quit posting errors and let you catch up.

Again...Nice idea for practice programming.

Be open minded but not gullible.A hammer sees everything as a nail ... so don't be A tool ... be many tools.

Posted

Also, (not trying to be a spoil sport) I'd be cautious about the copyrights...I don't know if there are any issues in this area since it is free.

I thought of that, but then, looked up copyrights (I forgot where exactly), and found that you can use any copyrighted picture that you want in your program as long as you are not making a profit off of the picture (A.K.A. selling your program that has a copyrighted picture), and I have edited the picture to make it look better.

***************************************************

AutoIt Error

Line 0 (File "[file path to board.exe]")

If $currentproperties[$propertynum]=0 Then Return 0

If $currentproperties[^ERROR

Error: Array variable subscript badly formed

***************************************************

Being looked into right now!

I landed on Chance a number of times and did not get a card.

I will update the first post in a few minutes, The _Drawchance function was not being called in _SpecialEvent the right way, which I thought I had fixed before.

I landed on Short Line and bought the property but it showed I bought Pennsylvania Ave instead. I also noticed if the window size is changed it moves the pieces.

When I rolled from Short Line I got 4+4 and landed on Community Chest but should have landed on Baltic Ave...unless of course I was actually on Penn. Ave. which seems likely since the game let me buy Penn Ave when I was on Short Line.

Never had that happen to me... but personally, I thought I had perfected the rolling of the dice ;) ... so I don't even look at them anymore. :">

What goes around comes around... Payback's a bitch.

Posted (edited)

***************************************************

AutoIt Error

Line 0 (File "[file path to board.exe]")

If $currentproperties[$propertynum]=0 Then Return 0

If $currentproperties[^ERROR

Error: Array variable subscript badly formed

***************************************************

I think, that was caused by $propertynum being 40 or over, if it was, it is now fixed.

Updating now.

EDIT: that doesn't seem to be the problem.

EDIT2: WOW, I just realized that $currentproperties isn't an array..... Updating.

Edited by Kickassjoe

What goes around comes around... Payback's a bitch.

Posted

The Newer update...

There was an error that says:End IF with no matching IF...

Fixed

Valuater: Which XSkin do you think I should use?

What goes around comes around... Payback's a bitch.

Posted

Nice job so far... still get a few errors, but i know you are working on it

as for XSkin... I think thias game needs the largest screen area available and XSkin would decrease the visual size of the "board", thus for this game i dont htink XSkin is the way to go....

maybe background colors and pics would be the best here

keep up the good work

8)

NEWHeader1.png

Posted

I was thinking of making a save / load game feature... I almost have it done, but it is in my programming binder at school (programming is what gets me through the school day!)

I was also thinking that I could make the skin user-defined. make a "Skin" button, make a gui with a list of all of the available skins... and then depending on which one is chosen... add $xpos and $ypos to all of the gui buttons/labels/imgs, and make $xpos and $ypos however much room is needed to show the whole XSkin. I can always put a scrollbar in there if needed (it probably wont be with the new board, you can actually tell how much everything costs!), and I was thinking of making the board rotatable anyways ;).

What goes around comes around... Payback's a bitch.

Posted

Now that I think about it... rotatable board would be very hard, almost not worth the effort. But, I have nothing else to do tomorrow, so it might be done. Rotating the picture would be easy, all of the labels being right after that is the hard part. Would have to delete all of the labels/imgs, and make them again... in the right spots...(I might work on it through algebra, science, and high lang. tomorrow, maybe not science, because my sience teacher expects me to not know what hes talking about (he calls on me whenever he thinks I'm not paying attention, I wish he would die))

What goes around comes around... Payback's a bitch.

Posted

Monoploy in autoit is sick :|

in a good way or bad way?

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Posted (edited)

in a good way or bad way?

I was gonna ask that same question!

@Valuater: After I started to program a rotatable board, I realized that I would have to redo every function that I had made, that had anything to do with a position on the GUI, and when I can just make a scrollbar.. It just isn't worth it. Making it rotatable just to look at, without any actions after the rotation would be easy, but I don't see the point in that...

Edited by Kickassjoe

What goes around comes around... Payback's a bitch.

Posted

I was gonna ask that same question!

@Valuater: After I started to program a rotatable board, I realized that I would have to redo every function that I had made, that had anything to do with a position on the GUI, and when I can just make a scrollbar.. It just isn't worth it. Making it rotatable just to look at, without any actions after the rotation would be easy, but I don't see the point in that...

I agree...

and i thought that might be difficult also

maybe just keep the board where it is and get all the functions as close to a the original game as possible

8)

NEWHeader1.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...