-
[Unity 3D] Hearthstone Clone
Images:
https://github.com/GitHtub/Hearthstone
Fully working hearthstone clone.. Without PHP Scripts.
But static Login.php:
Code:
<?php
/*string[] s = res.Split('/');
player.id = s[1];
player.nickname = s[2];
player.expack = int.Parse(s[3]);
player.gold = int.Parse(s[4]);
player.rmb = 2000;
for(int x=5;x<s.Length;x++)
{
player.cards += s[x] + "/";
}*/
echo "ok";
echo "/1";
echo "/GigaToni";
echo "/100";
echo "/1000";
// Card items
echo "/id1";
echo "/id2";
echo "/id3";
echo "/id4";
?>
static getsets.php:
Code:
<?
/*
public enum CardClass
{
kany,
kwarrior = 1, //ZZ
kpaladin = 2,//SQ
khunter = 3, //LR
krogue = 4,//SQ
kpriest = 5,//MS
kshama = 7,//SM
kmage = 8,//DZ
kwarlock = 9,//SS
kdruid = 11,//DLY
};
ID&NAME&CLASS&CARDS<br />
*/
?>
1&TEST&1&id1*1/id2*1/id3*1/id4*1<br />
How to add multi language support:
Add to the label a component (Search in the box for Localize):
Add the string with a key to the english.txt in languages:
Finally type in the key name to the Localize Key box:
-
Re: Hearthstone Clone
GREAT RELEASE!!!
Im gonna test it ASAP and leave feedback here ;)
-
Re: Hearthstone Clone
I already tested it (As you can see on the pictures) because the base that is up on the Github is in chinese only.
-
Re: Hearthstone Clone
Sorry for the noobish question... Never worked with Unity engine. Which Webserver are they using to deploy their apps?
-
Re: Hearthstone Clone
? i don't understand your question.. Unity exports the file as exe. You'll need to create your backend yourself. (Not inside unity. This "Game" makes only web requests)
-
Re: Hearthstone Clone
Ah okay. I thought this game was a Browserbased game ;). So this is without the actual logic, which is served by the backend...
If that is the case, i might work on a backend since im a very good js backend dev (node.js / mongodb).
-
Re: Hearthstone Clone
No it has all the logic and stuff. The only thing it's missing is the saving stuff (Accounts, Player card sets, shop things etc.)
-
Re: Hearthstone Clone
Okay. No problem either ;). Can you give me a quick example how the requests are actually looking like?
Need to download Unityengine first...
-
Re: Hearthstone Clone
It's just a plain old GET request..
login.php?name=GigaToni&password=abc123
-
Re: Hearthstone Clone
Sounds good. Though I don't like serving the logic client-sided since this is a luck based game...
-
Re: Hearthstone Clone
Yep. and the security through http get request is also not very... secure. MiM attack and sniff the pw ;). So it needs definitely work.
-
Re: Hearthstone Clone
Ye ;). But still the client-assets and stuff looking very nice! A chinese&english speaking-dude would be nice to translate the stuff on the client-side.
-
Re: Hearthstone Clone
Use google translate. I translated almost 90% of the client with google translate. (No cards translated ;))
Also just a Tip. There is NGUI in it with that you can easily create a multi language client ;)
-
Re: Hearthstone Clone
That Repo isn't uploaded by you, right? Why don't you just share your translated assets with us? :D
-
Re: Hearthstone Clone
No it's not.. I'll add my own repo later...
-
Re: Hearthstone Clone
Would be great. Im installing Unity right now. Let's see if I can quickly set up an api and modify the requests by the clients...
-
Re: Hearthstone Clone
-
Re: Hearthstone Clone
-
Re: Hearthstone Clone
-
Re: Hearthstone Clone
I think he is still pushing the files to the repo :)
-
Re: Hearthstone Clone
This is not a discussion what engine is good for multiplayer games. Hearthstone also uses this engine.
-
Re: Hearthstone Clone
-
Re: Hearthstone Clone
@GigaToni How much time left till upload is done?
-
Re: Hearthstone Clone
@randym
I don't know. In sourcetree / git you don't have percentages.
@dimas137
Look in the first post. or google "Hearthstone"
@B1QB0SS
No. Why?
1. I don't give credits
2. I should give credit to 58player.com not cgpersia
3. Instead of whining contribute!
-
Re: [Unity 3D] Hearthstone Clone
May I ask how old these clientsources are?
-
Re: [Unity 3D] Hearthstone Clone
1. Its a clone not the original one. (Only the images / models are from Blizzard)
2. early 2013
-
Re: [Unity 3D] Hearthstone Clone
Can you upload a build of this game????
-
Re: [Unity 3D] Hearthstone Clone
or full guide how to make working all.
-
Re: Hearthstone Clone
Quote:
Originally Posted by
GigaToni
@
randym
I don't know. In sourcetree / git you don't have percentages.
@
dimas137
Look in the first post. or google "Hearthstone"
@
B1QB0SS
No. Why?
1. I don't give credits
2. I should give credit to 58player.com not cgpersia
3. Instead of whining contribute!
how to compile?
using unity3d ver sir?
-
Re: [Unity 3D] Hearthstone Clone
-
Re: [Unity 3D] Hearthstone Clone
do you know more great projects using unity? or website with custom projects?
-
Re: [Unity 3D] Hearthstone Clone
-
Re: [Unity 3D] Hearthstone Clone
Server is built-in. It's a peer to peer system.
-
Re: [Unity 3D] Hearthstone Clone
Quote:
Originally Posted by
GigaToni
Server is built-in. It's a peer to peer system.
http://www.monstersinc.vn/uploads/loaddz.png
I write PHPs for login and modify game.unity for load dz.unity
Hic, it is not event for play :mad:
-
Re: [Unity 3D] Hearthstone Clone
See the error log.
Quote:
FormatException Input string was not in the correct format.
-
Re: [Unity 3D] Hearthstone Clone
It is error of updatset.php
Website is not update with old cache :p
-
Re: [Unity 3D] Hearthstone Clone
-
Re: [Unity 3D] Hearthstone Clone
Hey, I tried to contact you on Skype, would you be willing to help me set up the web part on my server? (I'll gladly throw you some money your way for your time).
Thanks in advance!
-
Re: [Unity 3D] Hearthstone Clone
any chance of adding new content?like cards ,missions and stuff?
-
Re: [Unity 3D] Hearthstone Clone
Quote:
Originally Posted by
xlw00tlx
any chance of adding new content?like cards ,missions and stuff?
that's actually very easy but i still havent found out how to the webserver part of this (the games are p2p but it requires a webserver to login and keep trakc of your cards).
-
Re: [Unity 3D] Hearthstone Clone
I could write a nice backend for this, if anyone is interested in working with me please pm.
-
Re: [Unity 3D] Hearthstone Clone
Quote:
Originally Posted by
Ryan Willats
Is anyone willing to help me make a webserver if so I'm willing to do anything at the cost i even have a VPS to run this stuff.
What kind of OS are you running? If Linux, just install Apache from your systems repos. IE centos would be 'yum install apache'.
-
Re: Hearthstone Clone
Any guides of how to set this up ?
-
Re: [Unity 3D] Hearthstone Clone
ok, guys i know this is an old thread, but in case someone is still interested in this, i have a question.
IS there a full database with the game mechanics available somewhere ( example all card codes etc etc) that we can use to fully debug this and customize the requests to work with a dynamic backend ?
-
Re: [Unity 3D] Hearthstone Clone
For what full database if there is no query in the code.
To answer your question: No.
-
Re: [Unity 3D] Hearthstone Clone
I'm working on a Hearthstone clone with this, i rewrited some of php scripts to make it work, we can register, login, buy and open pack, edit and save set, i alse added all newest cards from the last version of Hearthstone, and i'm now working to make cards playable :)
Some screen of my progress (cards are french, because i'm french ^^) :
http://imageshack.com/a/img924/7003/BcYanL.png
http://imageshack.com/a/img923/7541/cBf5wq.png
http://imageshack.com/a/img921/6840/DCLpfB.png
http://imageshack.com/a/img922/735/KJwbgS.png
http://imageshack.com/a/img921/3323/aDWPU8.png
http://imageshack.com/a/img922/1521/NWRmE7.png
-
Re: [Unity 3D] Hearthstone Clone
Quote:
Originally Posted by
Retalyx
Cool :ott:
-
Re: [Unity 3D] Hearthstone Clone
Quote:
Originally Posted by
OldGamer
Cool :ott:
Thanks :) now i've added Weapon system, Divine shield & Charge mechanic, and i'm working to add all cards effects (Battlecry, Deathrattle, and their prerequisite) :)
-
Re: [Unity 3D] Hearthstone Clone
How did you solve it that you can actually play? :o
-
Re: [Unity 3D] Hearthstone Clone
Hard to explain, it was a lot of work
-
Re: [Unity 3D] Hearthstone Clone
Quote:
Originally Posted by
Retalyx
Hard to explain, it was a lot of work
Are you going to release this to the public?
If so, could you setup a github repository?
-
Re: [Unity 3D] Hearthstone Clone
Probably, but i prefer to make it fully playable, and the more bugless i can before sharing
-
Re: [Unity 3D] Hearthstone Clone
Quote:
Originally Posted by
Retalyx
Probably, but i prefer to make it fully playable, and the more bugless i can before sharing
Thank you!
This would be the best share which was ever made (my personal opinion ^^). :)
Good luck!
-
Re: [Unity 3D] Hearthstone Clone
Quote:
Originally Posted by
xxbwxx
Thank you!
This would be the best share which was ever made (my personal opinion ^^). :)
Good luck!
Thanks you :)
-
Re: [Unity 3D] Hearthstone Clone
I intend to add later cards created by the community,
these cards will be obtainable via a special booster,
and will only be playable in a specific gamemode (combining the original cards and community made cards)
So if you have cards to suggest me, send me your cards by mail to:
hearthstone@retalyx.fr
You can create cards with website like:
Hearthstone Card Generator | HearthCards
You create your card, you save the image of the card, and you send me on mail :) (I'll also need that you send me, the image used to make the card's illustration)
You can if you like, send me your full name (or alias), which will be displayed as the author of the map.
Thanks :)
-
Re: [Unity 3D] Hearthstone Clone
I have pmed you as well brilliant work! :D
-
Re: [Unity 3D] Hearthstone Clone
-
Re: [Unity 3D] Hearthstone Clone
I'm still working on it, i'm coding all cards effects, its a lot of cards, a lots of time ;)
-
Re: [Unity 3D] Hearthstone Clone
Quote:
Originally Posted by
Retalyx
I'm still working on it, i'm coding all cards effects, its a lot of cards, a lots of time ;)
That is what we all want to know, we're counting on you! <3
-
Re: [Unity 3D] Hearthstone Clone
Someone should offer to help him. :)
-
Re: [Unity 3D] Hearthstone Clone
Quote:
Originally Posted by
Retalyx
I'm still working on it, i'm coding all cards effects, its a lot of cards, a lots of time ;)
Do you need some help ?
-
Re: [Unity 3D] Hearthstone Clone
Quote:
Originally Posted by
Retalyx
I'm still working on it, i'm coding all cards effects, its a lot of cards, a lots of time ;)
Are you going to let it open source? Im super interested into the code for additional own features. :D
-
Re: [Unity 3D] Hearthstone Clone
nice release, can i use this project to make my own game?
-
Re: [Unity 3D] Hearthstone Clone
Quote:
Originally Posted by
gordofatal
nice release, can i use this project to make my own game?
That's what this forum is all about...
-
Re: [Unity 3D] Hearthstone Clone
-
Re: [Unity 3D] Hearthstone Clone
Any news/updates? Just download what y have... Pleeease!
-
Re: [Unity 3D] Hearthstone Clone
Hello Retalyx I accidentally discovered this thread surfing the web. I am interested in this project. Can you tell me if you're continuing to work on this game or you have abandoned the development?
-
Re: [Unity 3D] Hearthstone Clone
I'm actually cloning my private repo to github, so you'll be able to access it ;)
I know I've been slow to do this, but I hope you'll forgive me :)
-
Re: [Unity 3D] Hearthstone Clone
of course and it's alright take all the time you need no one is rushing you haha.
-
Re: [Unity 3D] Hearthstone Clone
-
Re: [Unity 3D] Hearthstone Clone
Finally! Thx for sharing! Which version of Unity you a used for this project? I have some mech-colaider and parse errors...
-
Re: [Unity 3D] Hearthstone Clone
According to the project textfiles it says Unity 4.7.1 :)
EDIT: the last thing we need is the mysql database, cannot find out what tables and rows i need, tried to create it for my own but it wont work. :D
Gesendet von meinem D6503 mit Tapatalk
-
Re: [Unity 3D] Hearthstone Clone
Don't use mysql_connect.... These are deprecated a long time ago. Use mysqli or pdo.
https://github.com/Retalyx/Hearthsto...egister.php#L2
Code:
//Encryption & Decryption Code
For what?! Everybody can decompile the game anyway.
-
Re: [Unity 3D] Hearthstone Clone
it was for encrypting user password when register, it's on php serverside, so decompiling the game wont give the passphrase
And, dev is just a hobby for me, i'm not an expert. As i said i won't work anymore on the project, so if you don't like my code, re-write it
-
Re: [Unity 3D] Hearthstone Clone
Aha. So just because you won't work on this project you don't take suggestions to make your code and future code better? OK.
-
Re: [Unity 3D] Hearthstone Clone
-
Re: [Unity 3D] Hearthstone Clone
Quote:
Originally Posted by
inflamepw
Sorry, there is my last MySQL backup : https://pastebin.com/YBKi8UYU
-
Re: [Unity 3D] Hearthstone Clone
Hi! I want to create server with hearthstone to play with friends. I created my server with OpenServer pack, created database but how can I "connect" Hearthstone with my server and databases.
I'm really interested about it, but I'm a newbie in PHP. So. if anyone will help me, it's will be great.
-
Re: [Unity 3D] Hearthstone Clone
Quote:
Originally Posted by
markindo007
Hi! I want to create server with hearthstone to play with friends. I created my server with OpenServer pack, created database but how can I "connect" Hearthstone with my server and databases.
I'm really interested about it, but I'm a newbie in PHP. So. if anyone will help me, it's will be great.
no idea how do you login and setup a MYsql sever thing.
-
Re: [Unity 3D] Hearthstone Clone
Quote:
Originally Posted by
Retalyx
Could you upload a working webserver files?
The ones included in the source code don't work. I get errors.
-
Re: [Unity 3D] Hearthstone Clone
@Retalyx you did a nice job! How could you extract all the files? :)
-
Re: [Unity 3D] Hearthstone Clone
Hey,
I am trying to set up this project, using Retalyx
HearthStone Clone off of github. I have created a personal web server, with Xampp and loaded the database into phpMyAdmin
How do I get this project running from there?
Steps I've tried:
I've tried using several versions of Unity like 4.7.1 is this correct to use?
I've installed Xampp (server) and successfully imported the database.
Questions I still am looking for answers on:
Do you have to register a Domain name, or can you use localhost/phpmyadmin and run it locally on your laptop or desktop?
Do I have to deploy to unity web player, or can I deploy to Windows / PC and the project work?
Do I need to load the .php files into phpmyadmin, and /or htdocs?
I'm just trying to get this running so I can check it out too. Can you provide me a list of steps or instructions of how you got it working?
I really would appreciate any help or advice.
Retalyx HearthStone Repo:
https://github.com/Retalyx/Hearthstone-Unity-Clone
https://pastebin.com/YBKi8UYU
Thank You,
Jlynn
- - - Updated - - -
Rest in Peace Rémy - https://twitter.com/Retalyx
-
Re: [Unity 3D] Hearthstone Clone
Were any of you able to test this game out over the Web Server?
-
Re: [Unity 3D] Hearthstone Clone
Can someone share the full web files and DB?
I wanna make HarthStone mobile version.
-
Re: [Unity 3D] Hearthstone Clone
I still dont know why people work with incomplete stuff like this.
Quote:
Originally Posted by
loveomg
Can someone share the full web files and DB?
I wanna make HarthStone mobile version.
You can simply use the ready to go toolkits for stuff like that. Its easier than changing an incomplete and buggy stuff like this one.
https://assetstore.unity.com/package.../ccg-kit-52739
https://assetstore.unity.com/package...rd-game-192089
(and if you dont want to buy it, there are many ways to get it for free but be aware that this could bring you in much trouble due to licencing)
-
Re: [Unity 3D] Hearthstone Clone
-
Re: [Unity 3D] Hearthstone Clone
Quote:
Originally Posted by
lordmegamanx72
Thank for your help buddy,
But actually there is no PHP files for login, regist, getting card info from DB
- - - Updated - - -
Quote:
Originally Posted by
Zorno
Thank you so much friend
The second package is awesome, it almost complete
I gonna try with this code also