![]() |
*Simmering*
|
Great new addition. And while we are talking about great new addition, could you please add Lua as a secondary, optional scripting language to Graal? I know this would be time consuming and lots of work/effort, but it would be so much worth it. Torque Engine Script (or whatever it is called) is a pile of poo compared to Lua. Lua is rated the fasted scripting language availabe.
|
Quote:
Lua would be an improvement because it is a stable and well developed, and compact language. Of course we can't simply use Lua as it is because with Graal, security needs to be considered so Stefan would have to modify Lua to add security measures before he could use it. It's too much work at this point. I'm also obligated to say that I think Stackless Python is a better choice than Lua, but would be harder to modify for Graal-level security I think. |
Quote:
|
Quote:
|
Quote:
And no, SQLite has not been added to Valikorlia... and 2 database backups per day is a bit unnecessary. |
I see. Good to know, thanks.
|
Quote:
|
Quote:
In the rest of the scripting world, the number of times you back up data is proportionate to when the most changes occur (if data is updated weekly, there's no need to make daily backups), and sometimes how likely it is that you will need to restore that data (if you're not concerned with frequent server crashes). The only times Valikorlia has ever needed to restore back ups are when a staff member deletes everything in a hissy fit, and when the NPC server crashes. The first one happens more often than the latter, and the latter is only a problem because we're not using SQLite databases. If you want to back-up all the information twice a day, or once a day, go ahead. I don't see the need for such paranoia, and am fine with weekly backups. |
Quote:
Quote:
|
Quote:
Quote:
Like I said, though. If you want back everything up that often, go ahead. I'm sure you could even script something that would do it automatically; some GS2 equivalent to a cron job. EDIT: Could the new NPC server please be put on Valikorlia, already? :( |
Ok the new npcserver has been uploaded to all machines, need to be restarted manually though.
|
Quote:
Second, if the table has a column named "name" or like some other static variable then the row object has two variables named "name" in it, I was thinking that when setting the variables in the row object, if it conflicts with static variables then append an underscore. |
The database is databases/main.db
Use "as" for renaming columns of the result. You can also access the result as array, like rows[][] |
Quote:
Could you perhaps make a function for converting arrays into a format suitable for SQL statements? Basically making it into a large string, using single quotes around strings, and escaping the single quotes in the string. I figure that would be better if not done by script. And, I'd also like a server option for reporting SQLite errors and such on RC. This is the equivalent script: PHP Code:
|
All times are GMT +2. The time now is 04:06 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.