Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Slots Creator Pro (Slot Machine maker)

Discussion in 'Assets and Asset Store' started by FamerJoe, Mar 31, 2014.

  1. ITM-Worms

    ITM-Worms

    Joined:
    Jun 27, 2013
    Posts:
    21
    hello , what are the changes of 1.10 ?
    greets.
     
  2. FamerJoe

    FamerJoe

    Joined:
    Dec 21, 2013
    Posts:
    193
    Just a Unity5 compatibility issue.
     
  3. flashydevil

    flashydevil

    Joined:
    Mar 29, 2015
    Posts:
    7
    Hi,

    I am trying to remove some game logic and put it on a Node.JS server and communicate with it through an API. However, I am not sure how to use "spinWithResult"? Is this the right call?
     
  4. FamerJoe

    FamerJoe

    Joined:
    Dec 21, 2013
    Posts:
    193
    If you were the guy who emailed me about this the other day, check your email :) If not:

    If you have a 3 reel slot, for instance, and you want to explicitly pass a result, you would do something like this:

    var result = new int[,] { {1,1,1},{1,1,1},{1,1,1} }; // create the result array
    spinWithResult(result);
    The numbers should match the indexes of the symbols set up in SCP.

    So you would just fill the array with the result from the server, basically.
     
  5. flashydevil

    flashydevil

    Joined:
    Mar 29, 2015
    Posts:
    7
    Thanks for your prompt reply. No it wasn't me that emailed you, but was thinking about it :)

    So basically I need to create my own 'result' array through the Node.JS server by calculating the frequency of each symbol in each reel etc.? For example the Frequency of each symbol specified within Unity needs to be re-modeled within Node.

    I am referring to the Reel.getSymbol(): uint selectedFrequency = RNGManager.getRandomRange(slot.activeRNG, 1, totalFrequency+1);

    Thanks.
     
  6. FamerJoe

    FamerJoe

    Joined:
    Dec 21, 2013
    Posts:
    193
    Hi Flashy,

    Yeah that should definitely work. At the end of the day, whatever you feed spinWithResult is exactly what will appear on the reels. So if you want to move the logic to server side, as long as the server knows the totalFrequency , it could pull the random numbers and return a string of integers (or however you want to do it), then you could retrieve the actual SCP symbol for each number (sort of like getSymbol does), then pass that array to spenWithResult.

    Let me know if you run into any issues!
     
    Last edited: Apr 5, 2015
  7. FamerJoe

    FamerJoe

    Joined:
    Dec 21, 2013
    Posts:
    193
    You would also need to replicate any clamping for this to work truly correctly, so you'd need to pass the clamping information of each symbol to the server as well so you could abide by them. Overall, it might be a little rough to get working entirely. The spinWithResult was originally implemented with the case in mind where the server would return an explicit set of symbol indexes, and would override all SCP logic.
     
  8. flashydevil

    flashydevil

    Joined:
    Mar 29, 2015
    Posts:
    7
    Great stuff mate! Yes in fact that is what I'm doing. I am replicating most of the logic into Node and slightly modifying it. So re-creating the slots and reels. spinWithResult would be the method I will call. I will not change getSymbol(), since it is more than enough as it is to create the slot as it is opened. However for security reasons, anything related to reels after the spin is pressed need to be server-logic based.

    But anyway, SCP is great. It gave us a very good head-start!! Glad we purchased it.
     
  9. FamerJoe

    FamerJoe

    Joined:
    Dec 21, 2013
    Posts:
    193
    Fantastic, thanks!
     
  10. flashydevil

    flashydevil

    Joined:
    Mar 29, 2015
    Posts:
    7
    Hey Joe,
    Does the slot.reelHeight (i.e. I suppose the parameter "Symbol Height", effect the Math payout? I believe the function createSymbol(i) is called as much as the slot.reelHight variable right?
    The logic will check for clamped symbols, however if clamping is set to 1 time for a particular reel, and the reelHeight is set to 5, and there are 10 different symbols, the likeliness that a symbol is on those 5 is much less than if the reelHeight was set to 10? Am I correct?
    In that case, the reelHeight variable decides how 'accurate' the slot machine is? For example decide that each reel will have 15 symbols on them. In this case, the clamping should be a bit more accurate?
    Doing this inside Unity will end up creating a lot of symbols that are hidden by the slot machine body, however doing this in Node.JS logic is a piece of cake.

    Cheers again!
     
  11. hemantp

    hemantp

    Joined:
    Feb 10, 2015
    Posts:
    15
    Hello,
    how to set condition like "Bet Max, Get ONE symbol in the left column, one in the right column and one in the middle column to go to the secret bonus round", slot have 5 column and 3 row ,
    How to set this condition in SCP. give me detail setting and code to get above condition execute?
     
  12. FamerJoe

    FamerJoe

    Joined:
    Dec 21, 2013
    Posts:
    193
    You are correct, given you have the frequency of each symbol appearing set the same. If you say make the frequency of a particular symbol 2x all the others, then it's likelyhood of appearing will be 2x the rest for each symbol generated regardless of what the height of the reel is. But if it is set to 1 for clamping, then once it's drawn, it won't be drawn again, which means the rest of the symbols would have the remaining frequencies changes of being drawn.
     
  13. FamerJoe

    FamerJoe

    Joined:
    Dec 21, 2013
    Posts:
    193
    The best place to do it would in the following callback:
    Code (csharp):
    1.  
    2.   private void OnLineWinComputed(SlotWinData win)
    3.    {
    4.      if ((win.setName == "Bonus") && ((win.matches == 3) && slot.refs.credits.totalBet() == 100)
    5.      {
    6.        slot.refs.wins.pauseWins();
    7.        // fire your bonus game here
    8.      }
    9. }
    10.  
     
  14. FamerJoe

    FamerJoe

    Joined:
    Dec 21, 2013
    Posts:
    193
  15. hemantp

    hemantp

    Joined:
    Feb 10, 2015
    Posts:
    15
    Can u give me Editor Setting For bonus game. I am confuse in setting condition like "Bet Max, Get ONE symbol in the left column, one in the right column and one in the middle column to go to the secret bonus round " in slot editor
     
  16. ITM-Worms

    ITM-Worms

    Joined:
    Jun 27, 2013
    Posts:
    21
    hey @ FamerJoe.
    the Slot Machine Pro Framework
    have some differents to yours ;)

    - UI system is based on the NGUI tool dll.
    - Animation uses the script class, so no need for the animator.

    and a complete game
    Captainstreasure20line
    greets.
    so if i had not buy yours, i would buy this because of more features ;)

    if he has stolen your code , contact the seller ;)


     
  17. FamerJoe

    FamerJoe

    Joined:
    Dec 21, 2013
    Posts:
    193
    It doesn't matter if it includes a couple of things SCP does not - the fact remains that the core of his asset is SCP :) I've already contacted Unity directly about the matter.
     
  18. FamerJoe

    FamerJoe

    Joined:
    Dec 21, 2013
    Posts:
    193
    I already answered this question, see above.
     
  19. Gary-Pearson

    Gary-Pearson

    Joined:
    Apr 10, 2013
    Posts:
    2
    Hello, Is it possible to change the draw positions of the reels so they don't always draw in the centre of the screen? I would like to draw them lower down and towards the left of the screen
     
  20. FamerJoe

    FamerJoe

    Joined:
    Dec 21, 2013
    Posts:
    193
    hey Gary, just moving the transfer of the object contacting the Slot script should do the trick, if that's what you mean?
     
  21. Landci

    Landci

    Joined:
    Aug 28, 2012
    Posts:
    33
    Hi, one question to the symbols in the reel.
    I realized that on each spin the symbols are rearranged randomly?
    Is it possible to make a fixed sequence of the symbols??
     
  22. FamerJoe

    FamerJoe

    Joined:
    Dec 21, 2013
    Posts:
    193
    Look above Landci, I answered this question earlier in the thread. Search for "spinWithResult"
     
  23. Landci

    Landci

    Joined:
    Aug 28, 2012
    Posts:
    33
    as i understood it "spinWithResult" gives me fixed symbols that are shown when the spin is done. I want the Symbols on the Reel to stay in the same order, every time i spin.
     
  24. FamerJoe

    FamerJoe

    Joined:
    Dec 21, 2013
    Posts:
    193
    Landci, ah sorry for the misunderstanding. Currently there's no way to accomplish that, other than manage the sequence yourself and pass the results with spinWithResult. I will look into alleviating that problem though.
     
  25. hemantp

    hemantp

    Joined:
    Feb 10, 2015
    Posts:
    15
    Hello,

    I have used your asset for one of our slot game. in that we have one issue. when we spin the slot first time then its become stuck after first spin its works properly. what is the solution of this problem ? i test your test example also its stuck there also. how to resolve this issue. suggest us !
     
  26. FamerJoe

    FamerJoe

    Joined:
    Dec 21, 2013
    Posts:
    193
    Is that happening with the latest version @hemantp ?
     
  27. spryx

    spryx

    Joined:
    Jul 23, 2013
    Posts:
    556
    @FamerJoe The "BeachDay" contains a slot that is not fully working on my system. More specifically, the Z order of the GUI seems wrong. Anyone else with this issue?
     
  28. FamerJoe

    FamerJoe

    Joined:
    Dec 21, 2013
    Posts:
    193
    @spryx Not sure what you are seeing, but it works fine on my system. This with Unity5?
     
  29. hemantp

    hemantp

    Joined:
    Feb 10, 2015
    Posts:
    15
    No, its happen with old version of slot creator pro . how can we resolve this beacause if we change with latest version i have to change whole setting. give the solution
     
  30. spryx

    spryx

    Joined:
    Jul 23, 2013
    Posts:
    556
    @FamerJoe
    The following screenshot is the beach days slot imported into a new project. Notice that most gui elements are hidden. I selected the GUI to indicate what is shown in the inspector. Sorry about the size of the pic.
    beachdays.png

    Sorting layers are not preserved in assets, so they need to be setup for each project... I assume that has something to do with it. Additionally, changing the order of the GUI "fixes" the issue, but the symbols appear above the slot overlay.

    I suggest testing with an entirely new project import - without any custom sorting layers... or confirm your system uses a sorting layer.

    This is version 5.1.0

    Thanks for your help.
     
    Last edited: Jun 30, 2015
  31. HolyFireGames

    HolyFireGames

    Joined:
    Apr 23, 2014
    Posts:
    133
  32. MikeHovland

    MikeHovland

    Joined:
    Oct 17, 2012
    Posts:
    7
  33. FamerJoe

    FamerJoe

    Joined:
    Dec 21, 2013
    Posts:
    193
    @spryx @HolyFireGames @MikeHovland Hey guys I have been away, but will check out the example in 5.1 and figure out what's going on. Not sure what's causing that. Are you all using 5.1 ?
     
  34. spryx

    spryx

    Joined:
    Jul 23, 2013
    Posts:
    556
  35. FamerJoe

    FamerJoe

    Joined:
    Dec 21, 2013
    Posts:
    193
    @spryx @HolyFireGames @MikeHovland Ok, it's definitely 5.1 that is causing this. I'm not sure if Unity broke something, or changed something. There are quite a few new sorting bugs in 5.1 in regards to UI and 2D. I'll get 5.1 downloaded, but I would hate to change something to accommodate 5.1 only to have it broke again when Unity fixes a bug.
     
  36. HolyFireGames

    HolyFireGames

    Joined:
    Apr 23, 2014
    Posts:
    133
  37. VectorNector

    VectorNector

    Joined:
    May 22, 2013
    Posts:
    62
    @FarmerJoe, I'm having the same issue for 5.1.1f1. I just downloaded the latest build to what's new and the only scene that's working barely is the SlotExampleScene. Let me know if you need screenshot or a video. I don't see any errors in the console whatsoever.
     
  38. spryx

    spryx

    Joined:
    Jul 23, 2013
    Posts:
    556
    Also experiencing issues when using scatter sets. I get several DOTween errors and invalid index.
     
  39. FamerJoe

    FamerJoe

    Joined:
    Dec 21, 2013
    Posts:
    193
    Sorry guys, I've been out of town, I'm in the middle of a move.

    @HolyFireGames @VectorNector I can't reproduce the issue with 5.1.1p2 I'm not sure if it was unique to 5.1.1f1 or what

    @spryx Not sure what's going on for you, is it a fresh import?
     
  40. VectorNector

    VectorNector

    Joined:
    May 22, 2013
    Posts:
    62
    No worries, man. Moving is never fun.

    So, I looked at the example scenes again and I noticed that the BeachDay's GUI was hidden underneath the slot facade so you have to set Order in Layer within the Canvas a little higher. It seems like after you import the asset, things are out of whack for some reason and you have to adjust a few stuff around to get it going.

    Thank you and good luck with your move!
     
  41. hemantp

    hemantp

    Joined:
    Feb 10, 2015
    Posts:
    15
    Hello,

    Still Slot is stuck in free spin. In latest version also. After first spin in work properly but in first its alway stuck in mobile device (Specific in android and ios device ). suggest us
     
  42. FamerJoe

    FamerJoe

    Joined:
    Dec 21, 2013
    Posts:
    193
    @VectorNector I think just setting the GUI canvas to Sorting Layer UI should fix the problem. I'm guessing on a fresh import that setting is being lost or something.
     
  43. andreluiz1974

    andreluiz1974

    Joined:
    Jun 21, 2015
    Posts:
    1
    hello,
    how works link option in Symbol Setup ?
     
  44. brianmok

    brianmok

    Joined:
    Jul 25, 2015
    Posts:
    5
    Hi, interested on your framework. Question, do we able to create different slots theme with different payout, minimum bet, lines etc in same game?
     
  45. ibyte

    ibyte

    Joined:
    Aug 14, 2009
    Posts:
    1,043
  46. jimprucey

    jimprucey

    Joined:
    Aug 12, 2012
    Posts:
    8
  47. FamerJoe

    FamerJoe

    Joined:
    Dec 21, 2013
    Posts:
    193
    jimprucey likes this.
  48. flashydevil

    flashydevil

    Joined:
    Mar 29, 2015
    Posts:
    7
    Hey mate,
    I have another question related to spinWithResult. All went fine there, and I have the slot machine logic and RNG on a Node.JS server, and through an API gives the result back to the slot creator pro.

    However, let's say there is a 1 second delay from the SPIN button click, to sending to the server, etc and sending the result back...

    This causes the usability of the slot machine to be a bit weak, because the user clicks on the SPIN, and then a second or 2 later, it animates to the received result.

    Would it be possible to animate the slot machine before you have the result?

    E.g. having a special state on the slot machine where it just spins random symbols, and then when the result is received, it animates towards the result?

    Cheers
     
  49. FamerJoe

    FamerJoe

    Joined:
    Dec 21, 2013
    Posts:
    193
    Hey Flashy, at the moment no, but let me see what I can do.

    Thinking about the design of something like that -

    It would be best if there were say a method:

    spinAndWaitForResult()

    which would then spin indefinitely until spinWithResult is called, at which point spinWithResult would "take over".

    There's a few logistics in there that could be tricky, but I'll take a look at the possibility asap.

    Also, I assume your NODE.js call is asynchronous?
     
  50. flashydevil

    flashydevil

    Joined:
    Mar 29, 2015
    Posts:
    7
    Very fast reply! Thanks a million.

    Yes the call is async. It takes some time since it saves every spin in the database, whilst also makes sure the customer is still logged in on FB etc. Basically it is a backend for a real gambling company.

    If I manage to sort it out, I will let you know but basically the logic should be as follows:

    1. Iterate through all the reels.
    2. Start the spinReel function (with an indefinite time).
    3. Move to a the ready state.
    4. When result is received, continue to spin (at the same speed).
    5. Move to the spinning state.

    Something like that perhaps. A special pre-spinning state, but post-ready state might be required.

    Have a brilliant day.