This is the re-upload one:
http://www.mediafire.com/?zjxkjnnkyda
You need to download these two files.And Extract it. Then put these 5 "py" files into "Library.ZIP" in your "DATA" folder!
I want to tell that all code have done! And now, it is perfect on my PC. You can also try it by yourself.
Notice the screen shot below. Notice the different between the later one and the Fixed one, The Fixed one works so great!
The default SP key and KILL key is "home" and "end". And now, you can setting it by yourself in the menu!
I have done it with working for a long time, But I have finish it!
Now the Rock-Bar works fine for every player! Everyone has his own situation, not to do some harm to the other player!
bug fixed:
1. Every player has his own STAR POWER System! It no longer that only player1 have the SP! That is owasome~
2. Fix the letter "XXX note streak". Now they shown for each other not only the 1st player!
3. Fix the Pause screen background. Now it works perfect!
The fixed GH-MOD:
The GH-mod Screen shot before:
The RB-mod Screen shot:
How to use:
Download it and add it into the "library.zip" in "data" folder.
That's all.
v1.1 fix:
This version has fix the double-click bug!
the postion of the element went to his best place now!
more detail as the screen shot~
What it changed:
It is a real Two-player mod! The score, the mulit of score are both separated for each player! And the star-power bar never cover the 2nd player!
What I have done with the code: (For any other code to improve the mod)
the 1st, I put the code between:
Code: Select all
# show the streak counter and miss message
if self.theme == 1:
if not self.pauseScreen == None:
.....
....
font.render(text, (.5-size[0]/2.0, .3))
if not self.failEnd:
self.failGame()
self.engine.view.setViewport(1,0)
# show the comments
into the for loop.
Code: Select all
for i,player in enumerate(self.playerList):
self.engine.view.setViewportHalf(len(self.playerList),i)
Theme.setSelectedColor()
....
After that, It can shows the two's element for each one.
But, they are all in the each Left-Half postion. The each right-Half are all empty. But the scores in the right position. So I go though the code about it.
finally I found that because the coordinate of the pictures are all short to the half.
So I change all the code in "def render" like:
Code: Select all
self.mult.transform.translate(w*0.134,h*0.19)
to this:
Code: Select all
self.mult.transform.translate(w*0.134*len(self.playerList),h*0.19)
And the problem solved.
Another problem, In GH theme, the 1st player score are not in the right postion. I checked it.change this:
Code: Select all
if len(self.playerList) > 1 and i == 0:
scoreFont.render("%d" % (player.score + self.getExtraScoreForCurrentlyPlayedNotes(i)), (0.3, y))
else:
scoreFont.render("%d" % (player.score + self.getExtraScoreForCurrentlyPlayedNotes(i)), (x, 0.518))
To :
Code: Select all
if len(self.playerList) > 1 and i == 0:
scoreFont.render("%d" % (player.score + self.getExtraScoreForCurrentlyPlayedNotes(i)), (x, 0.518))
else:
scoreFont.render("%d" % (player.score + self.getExtraScoreForCurrentlyPlayedNotes(i)), (x, 0.518))
And now I just coded to fix the combo number to show in the gh3 theme~ waiting~~
That's it,done.
Code: Select all
if player.streak >= 25 and not self.counterY >= 0.1125:
self.counterY += 0.01
elif player.streak < 25 and not self.counterY <= -0.1:
self.counterY -= 0.01
if self.counterY > 0.1125 or ( len(self.playerList)==2 ):
self.counterY = 0.1125
if self.counterY == 0.1125 or ( len(self.playerList)==2 and player.streak >0 ):
glColor4f(0,0,0,1)
streak3 = player.streak/1000
And then, all finished.
I hope someone can code it, and let it to more beautiful.
And as I think, to let the star power for each one, you need to code the part of star power collect and change.
Make the Players[0] to the other right way.
Have fun!