Description:
A working card game engine for Ren'Py written partially in Java.
Comments:
Note that this is just a tech demo, so there's no story or characters attached to this "game". If anyone is interested in using this game (or their own Java program) in their Ren'Py project, contact me and I'll see if I can help .
Feature requests are welcome.
Requirements:
Windows (Tested on Windows XP)
Java 5.0 or later
Screenshots:
Big Two
Blackjack
Download:
2007.08.18 - Update: version 0.02 is out! Now supporting Java 5.0!
2007.08.19 - Update: version 0.03 is out! Source code released under the MIT license.
(See attachment)
Card game engine for Ren'Py (Java)
Card game engine for Ren'Py (Java)
Last edited by Professor on Sun Aug 19, 2007 12:47 pm, edited 2 times in total.
Re: Card game engine for Ren'Py (Java)
Everytime I try to play either game, the program boots me out and the traceback comes up. I don't know if it's just this computer (which is a Windows XP) or something else... Anyway, here's the traceback on both games.
Blackjack wrote:I'm sorry, but an exception occured while executing your Ren'Py
script.
TypeError: Package hlhuynh.cge.core.Player is not Callable
While running game code:
- script call at line 60 of I:\Hoang\renpy-6.3.2\CgeDemo/game/script.rpy
- script call at line 76 of I:\Hoang\renpy-6.3.2\CgeDemo/game/script.rpy
- script at line 105 of I:\Hoang\renpy-6.3.2\CgeDemo/game/script.rpy
- python at line 108 of I:\Hoang\renpy-6.3.2\CgeDemo/game/script.rpy
I'd love it if it worked. Card games on Ren'py is an ace idea. The only problem is...how can it work so I can play it? X_XBig Two wrote:I'm sorry, but an exception occured while executing your Ren'Py
script.
TypeError: Package hlhuynh.cge.script.bigtwo.BigTwoRule is not Callable
While running game code:
- script call at line 60 of I:\Hoang\renpy-6.3.2\CgeDemo/game/script.rpy
- script call at line 74 of I:\Hoang\renpy-6.3.2\CgeDemo/game/script.rpy
- script at line 93 of I:\Hoang\renpy-6.3.2\CgeDemo/game/script.rpy
- python at line 96 of I:\Hoang\renpy-6.3.2\CgeDemo/game/script.rpy.
parvenue
showcase
SHjunkie
>>>>SOLSTICE<<<<
Need a PREMIUM Rapidshare host? PM me - I'll host your files free of charge.
showcase
SHjunkie
>>>>SOLSTICE<<<<
Need a PREMIUM Rapidshare host? PM me - I'll host your files free of charge.
Re: Card game engine for Ren'Py (Java)
I managed to play it actually(I use XP as well)
I only know Black Jack rules though, so I didn't play Big Two that much.
This could be a good base for a mini game :3
I only know Black Jack rules though, so I didn't play Big Two that much.
This could be a good base for a mini game :3
-
- Eileen-Class Veteran
- Posts: 1021
- Joined: Sat Dec 18, 2004 6:13 pm
- Location: Oregon
- Contact:
Re: Card game engine for Ren'Py (Java)
I'm sorry, but an exception occured while executing your Ren'Py
script.
TypeError: Package hlhuynh.cge.core.Player is not Callable
While running game code:
- script call at line 60 of I:\Hoang\renpy-6.3.2\CgeDemo/game/script.rpy
- script call at line 76 of I:\Hoang\renpy-6.3.2\CgeDemo/game/script.rpy
- script at line 105 of I:\Hoang\renpy-6.3.2\CgeDemo/game/script.rpy
- python at line 108 of I:\Hoang\renpy-6.3.2\CgeDemo/game/script.rpy.
-- Full Traceback ------------------------------------------------------------
File "C:\unzipped\CgeDemo-0.01c\renpy\bootstrap.py", line 209, in bootstrap
File "C:\unzipped\CgeDemo-0.01c\renpy\main.py", line 293, in main
File "C:\unzipped\CgeDemo-0.01c\renpy\main.py", line 88, in run
File "C:\unzipped\CgeDemo-0.01c\renpy\execution.py", line 194, in run
File "C:\unzipped\CgeDemo-0.01c\renpy\ast.py", line 491, in execute
File "C:\unzipped\CgeDemo-0.01c\renpy\python.py", line 861, in py_exec_bytecode
File "I:\Hoang\renpy-6.3.2\CgeDemo/game/script.rpy", line 108, in <module>
File "BlackjackScript.py", line 45, in __init__
File "PyCgeCore.py", line 51, in addPlayer
File "C:\unzipped\CgeDemo-0.01c\jpype\_jpackage.py", line 53, in __call__
TypeError: Package hlhuynh.cge.core.Player is not Callable
While running game code:
Ren'Py Version: Ren'Py 6.3.2b
-------------------------------------------------------------------
Happened with blackjack for me.....it'll ask which I want, the professor says *here we go!*.....then I get the traceback error.
I'm no techie....what's the error mean?
script.
TypeError: Package hlhuynh.cge.core.Player is not Callable
While running game code:
- script call at line 60 of I:\Hoang\renpy-6.3.2\CgeDemo/game/script.rpy
- script call at line 76 of I:\Hoang\renpy-6.3.2\CgeDemo/game/script.rpy
- script at line 105 of I:\Hoang\renpy-6.3.2\CgeDemo/game/script.rpy
- python at line 108 of I:\Hoang\renpy-6.3.2\CgeDemo/game/script.rpy.
-- Full Traceback ------------------------------------------------------------
File "C:\unzipped\CgeDemo-0.01c\renpy\bootstrap.py", line 209, in bootstrap
File "C:\unzipped\CgeDemo-0.01c\renpy\main.py", line 293, in main
File "C:\unzipped\CgeDemo-0.01c\renpy\main.py", line 88, in run
File "C:\unzipped\CgeDemo-0.01c\renpy\execution.py", line 194, in run
File "C:\unzipped\CgeDemo-0.01c\renpy\ast.py", line 491, in execute
File "C:\unzipped\CgeDemo-0.01c\renpy\python.py", line 861, in py_exec_bytecode
File "I:\Hoang\renpy-6.3.2\CgeDemo/game/script.rpy", line 108, in <module>
File "BlackjackScript.py", line 45, in __init__
File "PyCgeCore.py", line 51, in addPlayer
File "C:\unzipped\CgeDemo-0.01c\jpype\_jpackage.py", line 53, in __call__
TypeError: Package hlhuynh.cge.core.Player is not Callable
While running game code:
Ren'Py Version: Ren'Py 6.3.2b
-------------------------------------------------------------------
Happened with blackjack for me.....it'll ask which I want, the professor says *here we go!*.....then I get the traceback error.
I'm no techie....what's the error mean?
A friend is one that walks in when the world walks out.
Re: Card game engine for Ren'Py (Java)
Hi guys, thanks for the feedback. I appreciate it.
@parvenue and musical74
About your problems, I think it might be associated with the fact that I compiled for Java 6.0 only. If you guys don't mind, can you tell me what version of Java you have on your computer? You can check by running this command in the Command Prompt:
CgeDemo 0.02
Okay, after playing around with some of the settings in Eclipse, I finally got it to output Java 5 code.
So that lowers the minimum requirements to:
Download link can be found in the first post.
Cheers
@parvenue and musical74
About your problems, I think it might be associated with the fact that I compiled for Java 6.0 only. If you guys don't mind, can you tell me what version of Java you have on your computer? You can check by running this command in the Command Prompt:
edit:java -version
CgeDemo 0.02
Okay, after playing around with some of the settings in Eclipse, I finally got it to output Java 5 code.
So that lowers the minimum requirements to:
- Windows (Tested on Windows XP)
Java 5.0 or later
Download link can be found in the first post.
Cheers
Re: Card game engine for Ren'Py (Java)
Hi,
Just wanted to announce that I'm going to cease development on this project. The source code to both the python and Java part are now available under the MIT license for anyone to use.
I would also appreciate it if anyone who runs in to problems drop a post here so that I can figure out whether or not it's worth using Java to write complex minigames for Ren'Py.
Cheers
Just wanted to announce that I'm going to cease development on this project. The source code to both the python and Java part are now available under the MIT license for anyone to use.
I would also appreciate it if anyone who runs in to problems drop a post here so that I can figure out whether or not it's worth using Java to write complex minigames for Ren'Py.
Cheers
- TheOneAndOnly-K
- Regular
- Posts: 78
- Joined: Mon Apr 07, 2014 10:33 am
- Contact:
Re: Card game engine for Ren'Py (Java)
I'm getting a different error and I'm unsure how to fix it.
It plays the game fine, up until you reach the bottom of the 'deck' of your solitaire pile and it shows:
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 51, in script
File "game/script.rpy", line 55, in python
File "game/klondike.rpy", line 218, in python
File "game/cardgame.rpy", line 374, in python
AttributeError: 'NoneType' object has no attribute 'click'
It plays the game fine, up until you reach the bottom of the 'deck' of your solitaire pile and it shows:
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 51, in script
File "game/script.rpy", line 55, in python
File "game/klondike.rpy", line 218, in python
File "game/cardgame.rpy", line 374, in python
AttributeError: 'NoneType' object has no attribute 'click'
-
- Newbie
- Posts: 2
- Joined: Thu Apr 17, 2014 6:00 pm
- Contact:
Re: Card game engine for Ren'Py (Java)
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 45, in script
File "game/script.rpy", line 47, in python
TypeError: textbutton() takes exactly 1 argument (4 given)
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "C:\Users\Corrrine\Downloads\renpy-6.17.4-sdk\renpy\execution.py", line 294, in run
node.execute()
File "C:\Users\Corrrine\Downloads\renpy-6.17.4-sdk\renpy\ast.py", line 732, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "C:\Users\Corrrine\Downloads\renpy-6.17.4-sdk\renpy\python.py", line 1382, in py_exec_bytecode
exec bytecode in globals, locals
File "game/script.rpy", line 47, in <module>
ui.textbutton("Give Up", ui.jumps("giveup"), xalign=.02, yalign=.98)
TypeError: textbutton() takes exactly 1 argument (4 given)
Windows-XP-5.1.2600-SP2
Ren'Py 6.17.4.409
This happens right when I start the Card Game Demo
While running game code:
File "game/script.rpy", line 45, in script
File "game/script.rpy", line 47, in python
TypeError: textbutton() takes exactly 1 argument (4 given)
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "C:\Users\Corrrine\Downloads\renpy-6.17.4-sdk\renpy\execution.py", line 294, in run
node.execute()
File "C:\Users\Corrrine\Downloads\renpy-6.17.4-sdk\renpy\ast.py", line 732, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "C:\Users\Corrrine\Downloads\renpy-6.17.4-sdk\renpy\python.py", line 1382, in py_exec_bytecode
exec bytecode in globals, locals
File "game/script.rpy", line 47, in <module>
ui.textbutton("Give Up", ui.jumps("giveup"), xalign=.02, yalign=.98)
TypeError: textbutton() takes exactly 1 argument (4 given)
Windows-XP-5.1.2600-SP2
Ren'Py 6.17.4.409
This happens right when I start the Card Game Demo
Who is online
Users browsing this forum: No registered users