Перейти к содержимому
View in the app

A better way to browse. Learn more.

Zloplay community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Опубликовано:

Actually I have only 33 / 37 Maps running. If I add 1 more map to the rotation the server shuts down or iw5m.exe will crash.

I am suffering the same problem as well.

 

Hopefully zxz0O0 will figure something out but as of right now I going to try combing 2 playlist into 1..

Опубликовано:
  • Автор

Seems my last post didn't get approved.

 

Anyway a dvar is limited in size, it's not unlimited, that's why you have crashing issue.

I made an extended version which doesn't use a dvar but a tmp file instead. I tested it with 400entries (so that should be enough for everyone) and everything worked. Depending on your configuration you may see increased ram usage.

 

Btw, would be good if a moderator could also compile the extended version.

Опубликовано:

hello zxz0O0

 

I have 1 more suggestion ro you.

Please forgive me my bad english but I try to explain what I mean as good as I can :D

 

Could you rebuid your Plugin in that way, that we can change the name of the "OldRotation.cfg"?

 

for example:

In the Serverconfig can be an entry like this:

OldRotationName "rotation1.cfg"

and in that case the "temp.dspl" should be named to "temp_rotation1.dspl"

 

Why this?

Because if we wanna host more then 1 Server we only can use always the same OldRotation.cfg. Means:

on all Servers with the good old Maprotation-system (CoD4 for ever) all the maps are the same, or we have to use the random-shit.

 

Or am I wrong?

Опубликовано:
Mauser":1z6q9zev]Because if we wanna host more then 1 Server we only can use always the same OldRotation.cfg.

Compile the plugin several times, using different names for each dll, and each dll writting and loading a different temp playlist.

Then you can use one variant of the plugin for each server.

Опубликовано:
Mauser":151dqm33]Because if we wanna host more then 1 Server we only can use always the same OldRotation.cfg.

Compile the plugin several times, using different names for each dll, and each dll writting and loading a different temp playlist.

Then you can use one variant of the plugin for each server.

bad way to do it

Опубликовано:
bad way to do it

I agree with you. The solution I posted goes completely against the principles of "development".

But still, it's a workaround that would work for nabs like me :3

I have no skill in scriting C/C++, I just can a bit AutoIt...

 

Can a coder use variables in C/C++? If yes, then he could rebuild that DLL in this way, that the name of the DLL can be used 4 everything.

Example:

namespace OldRotation
{
   public class OldRot : BaseScript
   {
       public OldRot()
       {
  //      Log.Write(LogLevel.Info, "\n OldRotation Plugin loaded\n Author: zxz0O0");  <--- the old way
           Log.Write(LogLevel.Info, "\n " & $PLUGINNAME & " loaded\n Author: zxz0O0"); // new way

 //       if (!File.Exists(@"scripts\OldRotation.cfg"))  <--- the old way
           if (!File.Exists(@"scripts\" & $PLUGINNAME & ".cfg")) // new way
           { .........

If this is possible, like in AutoIt, then we could rename the DLL like we want and we would be able to make more then 1 rotation for each server.

 

Kind regards

Mauser

Опубликовано:
  • Автор

Thank you [iFA] Mauser for your suggestion. I've updated the extended version in the first post so you can set the config file yourself. If you also need the simple version to be updated please let me know.

Опубликовано:

Well, I just got another idea for multiple server rotations...

The plugin could grab a command from server.cfg

Let's suppose that the plugin supports a rotation on each line of OldRotation.cfg

 

Then, if the server is set to:

seta sv_maprotation "0"

it will load the rotation on the first line.

 

If you got:

seta sv_maprotation "1"

it will load the rotation on the second line instead.

 

And so on, meaning that you could have several rotations set on OldRotation.cfg, and choose one with sv_maprotation command. The hardest part seems to be to fix the crash that happens at the end of the rotation, if OldRotation.cfg has an enter at the end of the line.

Just for Pigophone to be happy with a "professional" way of doing it :3

Опубликовано:
Thank you [iFA] Mauser for your suggestion. I've updated the extended version in the first post so you can set the config file yourself. If you also need the simple version to be updated please let me know.

Hello Master zxz0O0

 

great work!!!

 

I just tried the new extended.dll and it seems working like it should do.

great work :)

 

Thank you and best regards,

 

[iFA] Mauser

  • 4 weeks later...
Опубликовано:
Hello!

 

I'm still a beginner in scripting.

How to play for putting the script?

 

Which folder?

Which file must still reach into the server load?

 

Please help!

 

http://fourdeltaone.net/forum/viewtopic.php?f=39&t=16409

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Гость
Ответить в тему...

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу

Важная информация

Используя этот сайт, вы соглашаетесь Условия использования.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.