Forum
A place to discuss topics/games with other webDiplomacy players.
Flame (938 D)
25 Jul 18 UTC
(+1)
Classic 1898 Fog
Classic 1898 Fog - Sid Meyer's Civilization in Diplomacy )))
Let's test! http://lab.diplomail.ru/board.php?gameID=77

2 replies
Open
Flame (938 D)
25 Nov 17 UTC
Punic Wars variant
I have started the Punic Wars variant WebDip-adaptation. Variant is based on Sail Ho variant.
http://forum.diplomail.ru/viewtopic.php?f=15&t=1702
23 replies
Open
Flame (938 D)
08 Jan 18 UTC
Western World 901
As I promised - I will release WW901 soon!
http://lab.diplomail.ru/variants.php?variantID=127
27 replies
Open
Safari (1013 D)
05 Jan 18 UTC
Austrian Succession Test #3: New and Improved
After four years, War of Austrian Succession is nearing completion! Please come help test it so that I can perfect the balance!
It would be very helpful if we could have no NMRs for the first few phases especially. http://lab.diplomail.ru/board.php?gameID=64
3 replies
Open
Flame (938 D)
11 Feb 18 UTC
Maybe new domain name
Maybe we will move to another domain in a month. So please check vDip-forum for some news from me if you will not able to find Diplolab.
0 replies
Open
michael_b (1000 D)
03 Sep 17 UTC
Hello Everyone
Hi everyone, hope you're all doing well. I hope someone familiar with the interface can help me implement my idea!
10 replies
Open
Flame (938 D)
26 Feb 17 UTC
Mongolian Empire
Kaner406, what about Mongolian Empire variant?
58 replies
Open
CCR (1000 D)
04 Dec 17 UTC
Imperium without the river rule.
I would like we playtested this plain option for that variant: the Imperium map without any river rule.

Better call in players who have played the river rule, to feel the difference. If the players approve the change, we could dare proposing it for permanent change in vdip.
9 replies
Open
Enriador (975 D)
26 Nov 17 UTC
Mobile overhaul
Any chance we can get vDip's mobile rework here as well?
3 replies
Open
Temasek22 (1000 D)
31 Oct 17 UTC
Another Balkan War
Opinions?

https://postimg.org/image/97zcj4ibmj/
2 replies
Open
Flame (938 D)
27 Sep 17 UTC
Western Known World 901
I want to initiate the work on adaptation of Western Known World 901 variant. Especially when we got his older brother Known World 901 already done. All maps and sources of the variant are here
http://forum.diplomail.ru/viewtopic.php?f=5&t=35
Who will take part in the task?
3 replies
Open
Flame (938 D)
22 Oct 17 UTC
Austrian Succession Test #2
Let's test it again.
http://lab.diplomail.ru/board.php?gameID=51
0 replies
Open
Flame (938 D)
02 Oct 17 UTC
Classic 1898
Let's test!
http://lab.diplomail.ru/board.php?gameID=38
6 replies
Open
Flame (938 D)
28 Sep 17 UTC
Habelya variant bug?
In Habelya-variant: Fleet from Bay of Holgii can support move S.Holgii (Sc) from Holgian Sea.
Is it bug or normal situation?
1 reply
Open
Technostar (1000 D)
16 Sep 17 UTC
Divided States - Variant in progress
I am working on a variant where all 50 states are playable nations.
12 replies
Open
Yosh (1044 D)
24 Aug 17 UTC
Apparently the engine broke
What's with all that SQL errors?
2 replies
Open
Flame (938 D)
11 Feb 17 UTC
HowTo make a new variant?
As far as I understand Oliver's full instruction about variant creation is lost. So we are now to find all the information at different interbet resource and make up a new full instruction in the end.
Of course guys these issues you know already:
8 replies
Open
The Ambassador (1004 D)
15 Feb 17 UTC
Napoleonic test game
Hi folks - just created a test game of Napoleonic. Sign up if interested.

http://lab.diplomail.ru/board.php?gameID=4
45 replies
Open
Anglichanka (1165 D)
09 May 17 UTC
How to make interactive map and fog of war?
We try to add fog of war to some varyints and have some problemes cause there is no any guides about it. Can somebody explain me how to do this?
tobi1 (1000 D)
15 May 17 UTC
Hi Anglichanka,

the webdip code isn't really made for the fog of war rule and therefor many files have to be replaced or added. So this is a rule addition that is more difficult to be added. I tried to formulate a guide that can be followed by anyone without any coding skills in php but came to the conclusion that at least the current implementation is too complicated for such a guide.

So I will assume that you have some knowledge of php and that it is enough to give just some rough instructions on the coding.

The guide:

First of all let me explain, how the implementation of the FoW rule works. One can split the implementation in two components: the actual coloring of fog territories and the player specific provision of game data (e.g. a map from the player's perspective or the hide of the SC count in the game panel etc.). All modifications in the ClassicFog-variant's classes and resources directory beyond the standard modifications for every variant are part of one of these two components.
Every variant needs resource-maps which are pngs of the map with all land territories colored uniquely. The unique color is needed since the code that later draws the map for each phase of a game just changes the unique color of a territory to the color of the in-game occupier country. Since with addition of FoW sea territories will have to be "colorable", as well (they are either sea blue or foggy grey), those have to get a unique color in the source maps as well and adjustments in the draw map code have to be made. Islands that are part of sea territories and lakes and coast on land territories are another challenge that I will handle later in detail.
All the adjustments concerning the the map coloring can be found in classes/drawMap.php, resources/fogmap.php, map.png, map_noFog.png (the orginial map.png), smallmap.png, smallmap_noFog.png (the original smallmap.png).
All other adjustments that can be found in the ClassicFog's directory are part of the latter component, the provision of player specific information (so basically hiding every information, that would reveal information that go beyond the player's view of the map). This is done with the help of a random code that is created at the start of each game. From this code unique player specific keys are generated and only with such a key, player specific data can be viewed.

So to implement the rule for another variant you will have to create new a new map.png and a new smallmap.png, that do have unique colors not only for land but also for sea territories. Then you will mostly just copy the files of the ClassicFog variant and adjust the class names of the files in the classes directory and add them in the constructor of the variant.php file. If your variant already includes modifications of the files in the ClassicFog directory you will have to merge them by making on of the classes extensions parent of the other one (make sure to not overwrite the same function twice by different rule extensions!).

Assuming you are working on a variant without extra rules that just changes the map the only modified classes files in the original variant's directory are adjudicatorPreGame.php (information on the start positions) and drawMap.php (country colors and paths to the variant specific map directories). Of course you will have to replace the entries in the corresponding copied ClassicFog files with your map specific ones (but make sure that the $countryColors in drawMap still include the entries for fog and sea color!).

Apart from the data in drawMap.php and adjudicatorPreGame.php and the variant specific class names many files of the ClassicFog directory include hardcoded paths to the variant directory. Just search each file for 'ClassicFog' and replace with your variant name.

The only map specific modification left out at this point is the coloring of the islands and lakes and other water bodies included in a land territory. The problem is solved in this implementation by adding a new territory for land masses in a sea territory or water bodys in a land territory. Either directly in the instal.php or with the edit tool here in the lab (those territories need to be at the end of the territory list). Of course these islands and water bodies have to get unique colors in the [small]map.png, too. These (fake) territories will have no borders and therefor are unaccessible for units in the game.
To tell the program to color the fake territories together with the corresponding ones, you will have to adjust the territory ids in drawMap->colorTerritory(). The info above should be enough to understand the code in this function and adjust it to your needs.


I hope you are able to implement Fog of War now. I have not checked this guide so let me know if you are able to get the variant working or if I missed any important information. If you do not have enough php knowledge to follow this guide, you will probably have to look for direct help for the coding of your variant. There are just too many modifications and too many conflicts that could occur with other special rules to handle all of them in detail in a short guide.
tobi1 (1000 D)
15 May 17 UTC
You also asked about the interactive map feature.

Enabling the interactive map for a variant is actually much more simpler than the FoW rule (provided the server targeted for your variant have the general interactive map code):

Without any special rules you just have to make an adjusted map and store at [variantDirectory]/interactiveMap/IA_smallmap.png. Similar to the FoW map the adjusted map for the interactive map is the original map of find in the resources with additionally uniquely colored sea territories.
When a player clicks on the interactive map, the program checks the color of the clicked pixel for matches with colors found at each territory's coordinates. Because of this, sea bodies or islands inside land territories or sea territories should get the same color as the surrounding land or sea. For example in the IA_smallmap.png for the Classic variant the Bosporus gets the same color as Constantinople land so when a player clicks on the Bosporus, Constantinople will be selected.

If interactiveMap/IA_smallmap.png is added to your variant, the interactive map should be automatically enabled. However, some modifications require some adaption of the interactive map code (e.g. Fog of War or globe maps). For common modifications you should be able to find a variant on vdip, that already implemented that rule and have the interactive map. Just look in the corresponding interactiveMap folder and copy any file to yours. You often do not need to make any further adjustments to those files. But to be sure you can search for every occurrence of the variant's name from where the file is from and replace with the name of your variant.
tobi1 (1000 D)
15 May 17 UTC
*Hm, that paragraph might be difficult to understand without correcting my errors:

Without any special rules you just have to make an adjusted map and store *it* at [variantDirectory]/interactiveMap/IA_smallmap.png. Similar to the FoW map the adjusted map for the interactive map is the original map *you* find in the resources with additionally uniquely colored sea territories.
Anglichanka (1165 D)
18 May 17 UTC
Many thanks for the detailed guide!
I think that I will succeed in adding that I was going to.


4 replies
Technostar (1000 D)
12 May 17 UTC
Scramble for Africa Variant - Gauging Interest
I was wondering how interested people would be in a Scramble for Africa variant. I'm already making one for my friends and me to use, so it would be no problem to get it on here once I finish working on it.
2 replies
Open
The Ambassador (1004 D)
10 May 17 UTC
Saving map in GIMP - indexed single layer?
Flame - just opened the map.png file for Classic Calhamer Prototype and have been working on the file in GIMP.

From memory is the file saved as an indexed single layer png?
4 replies
Open
Flame (938 D)
09 Feb 17 UTC
Austrian Succession Test #1
War of Austrian Succession Test #1
http://lab.diplomail.ru/board.php?gameID=2
27 replies
Open
Flame (938 D)
20 Mar 17 UTC
Pirates variant
What's wrong with it? Please explain...
8 replies
Open
Safari (1013 D)
06 Mar 17 UTC
Site Glitch for Mobile
Today when I tried to log onto this site on my smartphone using 3G, I received this message: "Error Triggered: Column 'ip' cannot be null." It was fairly annoying as it caused me to NMR in one of our test games.

However, I think it might be fixable, because the same glitch doesn't appear on vDiplomacy.com, only here. Do you know what the problem is, Flame?
1 reply
Open
Flame (938 D)
28 Feb 17 UTC
Mapmakers
What about such famous names as "airborne", "King Atom", "Ninjanrd", "Synapse" and many others? Does anybody communicate with them? Maybe somebody is still playing on the official WebDiplomacy server?
0 replies
Open
Flame (938 D)
09 Feb 17 UTC
New variants to install
Please write here the variants you want to be installed on our testing server.
5 replies
Open
kaner406 (930 D)
09 Feb 17 UTC
Thanks!
I just want to say thankyou so much for establishing this lab!!! Looking forward to getting some variants coded. <3
8 replies
Open
Flame (938 D)
09 Feb 17 UTC
Lepanto 6x variant
I have already installed that variant. Can anybody tell me what vortex-rule means?
2 replies
Open
Back to top