-
Posts
2,130 -
Joined
-
Last visited
-
Days Won
145
Content Type
Profiles
Forums
Events
Everything posted by Magictallguy
-
What is this concept of which you speak? "Sleep"?! Nah, that's completely alien to me
-
solved QUERY ERROR: Query was SELECT * FROM gangwars where warID=
Magictallguy replied to Twisted's topic in Game Support
Based entirely on the query alone, I'm throwing a guess that you're running MC Codes v2. Have any edits been made to the code governing the gang surrenders? Were both gangs involved created in a standard manner (e.g., created in-game via creategang.php)? -
While it may be a common practice to blindly open your files to the world, I strongly recommend against this. On most systems (and with varying exceptions to the rule), non-user-modifiable directories should be no greater than 0755 - (read/write/execute to user, read/write to everyone else), and your files should be no greater than 0644 (read/write to user, read to everyone else). Any files written during installation (such as a config.php) will temporarily need world-write permissions to do so. Be sure to change the config file(s)' permissions back to non-world-writable when done
-
I can throw a little PHP code into a .jpg and cURL it to execute whatever I want on your server. Checking the extension alone is not enough
-
Shameless MWG plug!
-
SELECT * FROM some_table WHERE text_column IS NOT NULL ORDER BY some_column
-
Gross! Use literally any Jetbrains product
-
Need extra set of eyes plz [column count dont match
Magictallguy replied to Sim's topic in Gangster Legends
Got a weird character for your newline? C_playerPerc=:playerPerc -- here WHERE -
Need extra set of eyes plz [column count dont match
Magictallguy replied to Sim's topic in Gangster Legends
Got a bind value for :playerPerc? -
Don't change vendor files! Make a custom.css (or equivalent) and source it in after the bootstrap.css
-
That cable management, though ❤️
-
Strongly recommending a VESA desk-mount. I've got one for my dual screens and it really does save space. Here's pretty much the one I'm using, though they do come with more arms
-
Welp, my mistake! Does your server have some form of control panel? If so, and if it's cPanel, the directions above stand. If it's Plesk, then you'll need to visit the domain, click on Databases in the top right menu, then phpMyAdmin. The "how to navigate phpMyAdmin" part still stands here too. If it's something else (or nothing), let me know and I'll see if I can provide a walk-through for ya - if not, someone else probably can
-
Note: This walkthrough is based on the freely-available Gangster-Legends-V2 repo. I do not have access to a paid copy. Log into your database. If memory serves, you've previously stated you're hosting with MWG; so you'll be able to do this via your cPanel by clicking on phpMyAdmin and selecting your database. Once you're on your database, click on the SQL tab. If you've got this far, you're prepared to restore the table. Copy lines 9 - 20 of install/schema.sql From CREATE TABLE IF NOT EXISTS `crimes` ( all the way to ) DEFAULT CHARSET=utf8; Paste it into the SQL tab you opened up a moment ago, then click on .. either "Run" or "Go" (I can't quite remember which verb is used). If it successfully ran, that's your table restored. Now, if you want the default crimes that come with GLv2: Copy lines 11 - 13 of install/data.sql and paste that into the SQL tab too
-
Bah, humbug! Have a ... day!
-
Think ya should go through 'em, fix 'em, and submit a pull request 😉
-
What if you were to release a modding guide? Ya know, a list of Dos and Don'ts when it comes to modding GLv2. 3rd-party modders would then be enabled to do as they want while keeping in line with the engine's systems, ultimately not breaking the mod (hopefully)
-
As one of the owners of gRPG, I second this. v1 is not a great basis to work with if you're wanting to learn up-to-date methods, though it can be useful if you want to learn how and why things break. v2, while an improvement over v1, is pending updates to be compatible with more systems (and not rely so heavily on Composer!). Finally, while it may damage gRPG's reputation (or what's left of it), I would recommend GLv2 over gRPGv2 as it currently stands. Bluntly put, it's better written.
-
This isn't the topic for flaming each other. OP posted a genuine request for help. You don't have to respond to that request at all but, please, be respectful.
-
Looks like a session garbage collection - usually, happens at random (no way to easily reproduce) - with a misconfigured session location. As previously stated, I have little to no experience with GL, but PHP's PHP. Look for calls to session_save_path(). I have a feeling something is setting an invalid path
-
Need extra set of eyes [column count dont match
Magictallguy replied to Sim's topic in Gangster Legends
I strongly recommend a method known as Rubber Duck Debugging. The concept may sound daft, but I know it works for some. Grab a rubber duck, put it on your desk, talk it through your code next time you're debugging- 1 reply
-
- 1
-
-
-
I'm sure it is! I wouldn't be able to think straight if I was a cider either. Original snippet: $lv = date('F j, Y, g:i a', $ir['laston']); // Then, $lv is simply echoed Replacement: $lv = $ir['laston'] > 0 ? date('F j, Y, g:i a', $ir['laston']) : 'Today';