oscar-broman / PAWN-Boilerplate

(discontinued) Solid core for a big SA-MP server script.
http://sa-mp.com/
24 stars 13 forks source link

Three minor issues #18

Closed jte closed 12 years ago

jte commented 12 years ago
  1. An empty config.cfg should be automatically created in /scriptfiles/ so server does not complain on first run.
  2. Add Whirlpool plugin to server.cfg.
  3. If one adds new uninitialized(i.e. empty) language file, the server should notice him(otherwise you get a bunch of errors about it not being initialized)
oscar-broman commented 12 years ago

Good ideas.

Regarding adding new languages, I'm planning to allow reloading them during runtime. If an empty file is created, it will be filled with strings, but if it has entries and is incomplete, it should generate warnings imho.

I think I'll just remove the notice about config.cfg being created.

jte commented 12 years ago

I agree that it should generate warnings if lang file is incomplete, but I was saying that server should notice one that he needs to run compile(.bat) if he did not on a newly created file.

oscar-broman commented 12 years ago

Yeah, well the idea is you shouldn't need to re-compile when adding a new language. The server should be able to do this when it's running (via a RCON).

The only time the server should complain is if the file has strings, but not all of them (i.e. an outdated file).

Existing language files will be updated with new strings when compiling. So the warnings should only happen if you, for example, update the .AMX but forget to update the language files.