Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. Read more...

Feature #657142

fcdb: provide Lua instance with access to game data, signals etc

Added by Marko Lindqvist over 5 years ago. Updated 7 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Jacob Nevins <jtn>:

"It seems to me that much of the potential of the fcdb/luasql system is lost with the current facilities available to the Lua script database.lua.

For instance, if it had read access to game data and could receive signals, you could log game/score statistics, etc.

(I'm guessing this is the sort of thing book had in mind for "Easily extended beyond just auth" back in bug #13643?)"


Related issues

Related to Freeciv - Feature #657143: fcdb: allow database.lua to set user's cmdlevel, delegation etcClosed

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>
Blocks Freeciv - Task #939772: S3_2 datafile format freeze (d3f)New

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

History

#1 Updated by Marko Lindqvist over 5 years ago

  • Blocks Task #656466: S3_0 datafile format freeze (d3f) added

#2 Updated by Jacob Nevins about 4 years ago

This was gna patch #3385 .

#3 Updated by Jacob Nevins about 4 years ago

  • Related to Feature #657143: fcdb: allow database.lua to set user's cmdlevel, delegation etc added

#4 Updated by Zoltán Žarkov about 4 years ago

Since this feature is pretty nonspecific, I'll treat it as a metaticket for all of the fcdb extensions I'm planning.

  • Add luasql-odbc (fcweb.org is hosted on azure for now, so database is mssql).
  • luasocket + json.lua would be nice to be able to call http apis for auth and other stuff like logging scores.
  • Change the API of script_fcdb_call to be able to return values directly from lua stack.
  • Remove hardcoded md5 password hashing and offload to lua. Add crypt(3) and md5 hashing libraries to lua environment.

#5 Updated by Marko Lindqvist over 3 years ago

  • Blocks Task #673656: S3_1 datafile format freeze (d3f) added

#6 Updated by Marko Lindqvist over 3 years ago

  • Sprint/Milestone changed from 3.0.0 to 3.1.0

#7 Updated by Marko Lindqvist over 3 years ago

  • Blocks deleted (Task #656466: S3_0 datafile format freeze (d3f))

#8 Updated by Marko Lindqvist 7 months ago

  • Sprint/Milestone changed from 3.1.0 to 3.2.0

To be postponed to 3.2 with Feature #657143

#9 Updated by Marko Lindqvist 7 months ago

  • Blocked by Task #939772: S3_2 datafile format freeze (d3f) added

#10 Updated by Marko Lindqvist 7 months ago

  • Blocked by deleted (Task #939772: S3_2 datafile format freeze (d3f))

#11 Updated by Marko Lindqvist 7 months ago

  • Blocks Task #939772: S3_2 datafile format freeze (d3f) added

#12 Updated by Marko Lindqvist 7 months ago

  • Blocks deleted (Task #673656: S3_1 datafile format freeze (d3f))

Also available in: Atom PDF