In order to create a lottery you should follow the below steps. For this tutorial we will recreate the Brasilian Lottery.
- Ensure that the old lottery is expired before proceeding to create the new one;
- Open the latest games project from pr-global-leo-games-main and search in the ‘Lotteries’ module the lottery name in the Lottery_Denominations Sub Routine;
- denomENG(25) = "Brasilian Lottery" , in our case the index of the lottery we need to recreate is 25
- Verify if in the project if the draw days are the ones that the trading dept. gave to us.
- The variable of the draw days is ‘Lottery_DrawDays$(25) = "2+3-16.00/6-16.00//3-14.45/6-14.45"’
- Note that we have the same index as before 25. Pay attention to this information because if the draw days and deadlines are different is going to be really hard to change it
- The format of this line is at is follows : how many draws are in a week+the day number-real deadline//the day number-pre deadline
- In our case we have:
- How many draws are in a week : 2 (meaning we have 2 draws per week)
- The day number : we have 3 and 6 meaning the first draw is on Tuesday and the second is on Saturday
- Real deadline : 16.00 meaning 16:00
- Pre deadline : 14.45 meaning 14:45
- Once you made sure that the step 3 has been checked and all is good you can start games (note that if you need to change anything at all in the draw days line you should comment the old one and create a new one below so we have a trace of what was changed)
- Click on new game :
- Click on the lotteries button :
- Select the lottery you need to create from the dropdown menu next to the ‘EventType’ label as shown below:
- In the connection code field insert the year of the lottery:
- Click the OK button and wait for the procedure to finish.
- The lottery has been created and is live, at this point there are no other actions to be taken.
What errors you could encounter:
- The technical department could tell you that when they are trying to place a bet on a lottery newly created accept goes on stop.
- The first step you have to do is to try and place a bet on the same lottery in our VS
- If all is fine tell them to delete the Lottery.num file located in the Leonardo.cli directory and restart accept
- If in our VS you encounter the same issue do the same procedure with the lottery.num file
- If after all this you still have and issue go in games and change one deadline then put it back , delete the lottery.num file and restart accept
- If after all this steps you still have the issue get the latest version of accept from liv-croatia and debug your way
Notes:
Never create a lottery if the old one is not expired yet
Always restart games before creating a new lottery as it load the draw days at the beginning
When modifying the draw days always comment the old line and create a new one
And the most import thing is to always check if the draw days, deadlines and pre deadlines we have in the system are matching the ones that trading sent us.