Jump to content
Sign in to follow this  
Printaix

Admin commands without mod

Recommended Posts

Hello,
since 1.0 i use the omega-script (github, mentioned in other thread) to have some admin commands on my server.
Ie i use "/goto survivor" to jump to survivor or "/spawn item" to let an item spawn.

Now since 1.05 the script does not work. There is no error message in the log window.
And if i log in as admin and type a command, it's just like a chat massage - no function.

My server runs without mods (only a few tweaks) and i would like to keep it that way.
Does someone know a method to get admin commands back without using a mod?

Thank you in advance

  • Like 1

Share this post


Link to post
Share on other sites
5 hours ago, Printaix said:

Hello,
since 1.0 i use the omega-script (github, mentioned in other thread) to have some admin commands on my server.
Ie i use "/goto survivor" to jump to survivor or "/spawn item" to let an item spawn.

Now since 1.05 the script does not work. There is no error message in the log window.
And if i log in as admin and type a command, it's just like a chat massage - no function.

My server runs without mods (only a few tweaks) and i would like to keep it that way.
Does someone know a method to get admin commands back without using a mod?

Thank you in advance

Devs broke OnEvent function, you can't handle appended message 'cause param2 return ""(empty). In that way script/fnc can't parse what you want to input and somehow send your msg to chat. We need to wait while that will be fixed or analysed or found other way to parse user input into chat.

  • Like 1

Share this post


Link to post
Share on other sites

Is there still hope, that we get the script function back to work?

I testest some admin mods but i still miss the admin script.

  • Like 1

Share this post


Link to post
Share on other sites

https://opendayz.net/threads/odztools-logger.22335/

 

i hope this can help to find a solution 

Share this post


Link to post
Share on other sites

https://github.com/Pwnoz0r/ODZTools/tree/master/Scripts/Logger

 

change the first line in init.c

#include "$CurrentDir:\\mpmissions\\dayzOffline.chernarusplus\\ODZTools\\Scripts\\Logger\\Logger.c"

and add in init.c

void main()
{
    Logger.Init();
    Logger.Log(LogType.Debug, "This is a debug message!");
    Logger.Log(LogType.Info, "This is a info message!");
    Logger.Log(LogType.Warning, "This is a warning message!");
    Logger.Log(LogType.Error, "This is a error message!");

.................................................................................

 

and change the first line in Logger.c

#include "$CurrentDir:\\mpmissions\\dayzOffline.chernarusplus\\ODZTools\\Scripts\\Logger\\Enums\\LogType.c"

 

I hope you can get better debug information

Unfortunately, I am not a professional

 

 

Edited by ewillios

Share this post


Link to post
Share on other sites

After some more trial and error i still can't find a way to define&use admin commands.
Problem with the defined commands in init.c seems, that inputs in chat are not handlet as function - as Sid Debian mentioned.

There are some built in commands like #login  #monitor <seconds>  who work but i don't know how/if we can add some more.

I still hope there will be a way to define some admin functions without mods.

Share this post


Link to post
Share on other sites

Are there any news or hope, that this

On 9/8/2019 at 9:12 PM, Sid Debian said:

Devs broke OnEvent function, you can't handle appended message 'cause param2 return ""(empty).

will work again one day?

Share this post


Link to post
Share on other sites
1 hour ago, Printaix said:

Are there any news or hope, that this

will work again one day?

It's already working.

I'm using that. New tweak OnEvent allow you without admin login using console tool.

Here theme about this tool.

Edited by Sid Debian
  • Like 1

Share this post


Link to post
Share on other sites
On 1/6/2020 at 8:45 PM, Sid Debian said:

It's already working.

I'm using that. New tweak OnEvent allow you without admin login using console tool.

Here theme about this tool.

Hey, thanks for the hint. The commands work for me 2.

Now every player can use the commands. Is it possible that this commands are only avaylable for logged in admins?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×