Search found 11 matches

by Fireal
Sat Jan 04, 2020 3:57 pm
Forum: Advanced Help and Support
Topic: Energy Regeneration
Replies: -1
Views: 10005

Energy Regeneration

Hey guys, I'm trying to figure out the best way to handle how energy restores for my game. At first I was just going to run a cron every 10 minutes adding 10 energy points to all users. However, that didn't seem right because certain users perform energy depleting actions at different times, and I w...
by Fireal
Fri Apr 13, 2018 12:50 am
Forum: Programs/Assets/Libs/Open Source/Ect...
Topic: Forum Software and Integration
Replies: -1
Views: 4157

Forum Software and Integration

Howdy friends, was wondering what everyone would recommend as far as forum software for a game that can integrate well with my user database? Of course the more secure the better.

Or should I try and roll my own?

I want to have a place where my users can meet up and talk about the game.
by Fireal
Tue Apr 03, 2018 12:57 am
Forum: Beginner Help and Support
Topic: PHP Workers & Working with Modern Javascript Frameworks
Replies: -1
Views: 3653

PHP Workers & Working with Modern Javascript Frameworks

Hey guys, I'm back with another question for you fine gentlemen. 1.) What in the blue hell is a PHP Worker? Is it just like a way to use SESSIONS and store persistent data for non-web apps? I'm working with some javascript based frameworks and most of them won't accept php without using a worker or ...
by Fireal
Tue Mar 13, 2018 11:10 pm
Forum: Beginner Help and Support
Topic: Re: Fight Time Restrictions
Replies: 0
Views: 60316

Fight Time Restrictions

Hey everyone, still plugging away at a game I'm working on and I'm trying to figure out the best way to approach a fight restriction based on time. Basically, a user can only fight once every 15 minutes. And until the timer is expired they can't click on a "Fight!" button. Now, I understan...
by Fireal
Sun Nov 26, 2017 11:04 pm
Forum: Beginner Help and Support
Topic: MYSQL Two Tables Join Issue
Replies: -1
Views: 5573

Re: MYSQL Two Tables Join Issue

I am just trying to echo the move names, but I am using the moveid's(which are both in the moveset and moves table) to get them to join in my query and spit out just the move names. The code I listed above spits out the moveid's based on the wrestlerid(id) from a form on a previous page. I'm assumin...
by Fireal
Sun Nov 26, 2017 8:46 pm
Forum: Beginner Help and Support
Topic: MYSQL Two Tables Join Issue
Replies: -1
Views: 5573

MYSQL Two Tables Join Issue

Hello again, I apologize if I am posting too much, I'm just getting stuck a bit more the deeper I get in to my game. Being a novice programmer I assumed this sort of stuff would happen. Anyways, here's my problem. I am trying to display move names from a db. I have a $_GET['id'] stored in the variab...
by Fireal
Sun Nov 26, 2017 8:35 pm
Forum: Beginner Help and Support
Topic: Multiple Randoms On Same Page
Replies: -1
Views: 4829

Re: Multiple Randoms On Same Page

Thanks a_bertrand, that was it! I was losing track of the function declaration in my spaghetti code. It was nested in a loop. Thanks guys!
by Fireal
Sat Nov 25, 2017 9:56 pm
Forum: Beginner Help and Support
Topic: Multiple Randoms On Same Page
Replies: -1
Views: 4829

Re: Multiple Randoms On Same Page

Thanks Jack. However, I still can't seem to figure it out. I declare the function with function random_int ($min, $max) {return (mt_rand($min,$max));} and call it with $matchFinish = random_int(1,10); I have tried moving the declaration in the same loop as the call and outside the loop. It is only c...
by Fireal
Sat Nov 25, 2017 7:54 pm
Forum: Beginner Help and Support
Topic: Multiple Randoms On Same Page
Replies: -1
Views: 4829

Multiple Randoms On Same Page

Hello, I'm still working with getting all my randoms set up for a fighting game I'm working on. My issue is using the same random function twice, once per fighter, to determine a winner. Except, I keep getting the Fatal error: Cannot redeclare random_int() issue. My question is how do you go about g...
by Fireal
Sun May 21, 2017 6:16 pm
Forum: Beginner Help and Support
Topic: PHP Random Float Help
Replies: -1
Views: 2002

PHP Random Float Help

PHP beginner here and I am trying to use the code below to generate 5 random floats and then add them together. However, keep running in to a "Cannot Redeclare" error. Any help or suggestions? Thanks! function RandRoll($mod1, $mod2){ $modCalc = 1.00 + $mod1 + $mod2; echo "(" . $m...

Go to advanced search