Jump to content
Sign in to follow this  
RegEdit

Editing scripts on a dedicated server

Recommended Posts

Hello. Recently I setup a dedicated server on my PC to test MP scripts/missions. And I have two questions:

  1. When I edit some script in a mission (init.sqf, for example), that is already loaded on the server, and then press “saveâ€, Notepad++ says that this file is already opened in another program, i.e. in ArmA server executable. Because of that I have to reboot the whole server or make copy of a mission in MPMissions folder. Is there any more convenient method to edit scripts when mission on a server is already loaded?
  2. Can debug console be somehow accessed on a dedicated server? It works fine with a “enableDebugConsole = 1;†setting in Description.ext on a server that hosted from game, but it doesn’t show up on a dedicated, even if I’m logged in as admin.

Thanks in advance.

Share this post


Link to post
Share on other sites
Hello. Recently I setup a dedicated server on my PC to test MP scripts/missions. And I have two questions:

  1. When I edit some script in a mission (init.sqf, for example), that is already loaded on the server, and then press “saveâ€, Notepad++ says that this file is already opened in another program, i.e. in ArmA server executable. Because of that I have to reboot the whole server or make copy of a mission in MPMissions folder. Is there any more convenient method to edit scripts when mission on a server is already loaded?
    .
You have to take the game server down when doing this. Not the whole box, just the dedicatedserver.exe
---------- Post added at 22:46 ---------- Previous post was at 22:44 ----------

Can debug console be somehow accessed on a dedicated server? It works fine with a “enableDebugConsole = 1;†setting in Description.ext on a server that hosted from game, but it doesn’t show up on a dedicated, even if I’m logged in as admin.

Mmm, dnno. It works for me. I know that's not very helpful. Are you sure you are actually logged in as admin? Can you give a /#missions command, for example?

Edited by Tankbuster

Share this post


Link to post
Share on other sites
Does anybody know?

You can't edit scripts on the fly while they're running on a server, for a start if it's running on a server it's running from a compiled .pbo, not your mission folder.

oh my god what's happened to this page, I just see some massive box covering everything.

Share this post


Link to post
Share on other sites

1. You don't edit missions on a dedicated server you run missions on a dedicated server. That's what it's "dedicated" to, running missions.

Everytime you typo or want to change something:

  • Edit in the editor or make changes in your favorite text editor for scripts.

  • Change the name of the mission under Advanced Intel so that it reflects properly on the MP Missions list.

  • Exit the editor and rename the mission folder to reflect your new version.

  • Use MakePBO or whatever to create a new PBO or reload the mission in the editor to export to MP missions

  • Upload/copy to your dedicated server (if you don't give it a new name turn off your server, copy the file, then reload your server)

  • Test the mission again.

:)

2. Sure the hell hope not. :) You really shouldn't need the debug console on a dedicated server, the mission should be final by the time it's there.

Share this post


Link to post
Share on other sites
oh my god what's happened to this page, I just see some massive box covering everything.

I quoted the list tag [*] in my second reply and it went mental making that big white box. When I edited it and removed it from the quote, it went back to normal. Buggy stuff on Bohemia Interactive? Hard to believe, I know. :P

Share this post


Link to post
Share on other sites

Ahh crazy, thought it was the first post so i reported it so the mods could fix it, but all good now! :)

Share this post


Link to post
Share on other sites

Alright, I got it. Better use dedicated server to test scripts when they’re almost done. Thanks all for your answers.

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  

×