Forum
A place to discuss topics/games with other webDiplomacy players.
Page 80 of 1419
FirstPreviousNextLast
nelsnelson (100 D)
14 Mar 08 UTC
Facebook phpDip group
"phpDip - Diplomacy Online Enthusiasts"
Come join the Facebook group and put a face to your name here, or get together for games (and possibly make it harder for meta gamers?)
http://www.facebook.com/group.php?gid=9694802475
4 replies
Open
happyklim (154 D)
14 Mar 08 UTC
Bug in game Boludo!!!4
Dear Kestas,

In the game "Boludo!!!4", I ordered the army at Piedmont to support hold at Marseilles. I am sure the fleet in Marseilles wasn't ordered to move to anywhere but now, the fleet there was forced to retreat, please check.

(http://phpdiplomacy.net/board.php?gameID=2971)
1 reply
Open
Xerxes (294 D)
14 Mar 08 UTC
Is it still possible to diplace your units
by attacking one with support?
4 replies
Open
bc2000 (990 D)
14 Mar 08 UTC
[BUG] Retreat with army from Rumania
Dear Kestas
in game "Aint Dip w/o a Stab" I had an army in Rumania which should retreat, but I can't give the order.

(http://phpdiplomacy.net/board.php?gameID=3117)
0 replies
Open
figlesquidge (2131 D)
14 Mar 08 UTC
Map bug
When drawing a support-move, it points to the move line. However, when the move is to a bi-coastal territory, the line point to the line at the center of the nation. However, it doesn't always happen like this, look at the map below. support into spain from GoL is incorrectly drawn.
Perhaps best would be all move arrows point to the center of the territory?
http://www.phpdiplomacy.net/map.php?gameID=3125&turn=7&largemap=on
0 replies
Open
amathur2k (100 D)
14 Mar 08 UTC
Problem in moves
Hi Kestas, please take a look at the game lol-7
i am sure i had ordered a move from black sea to con and con to bulg.
the second one matured, but the first one seems to have gone missing.
2 replies
Open
figlesquidge (2131 D)
14 Mar 08 UTC
Red Spots
Please could we have the red spots back. If we're having green for on-line players, then we should have the red ones back for those who are off-line.
This won't take much more coding, although depends how you do it (using a php script to make the image, or to change the image link based on the main page generation, which is probably quicker overall)
0 replies
Open
ednos (529 D(S))
13 Mar 08 UTC
Players can resign?
If I go to joinable games, I see that, for a small fee, I can take over for players. It says their nation is in civil disorder. What exactly does that mean?
10 replies
Open
Hyperactive Jam (299 D)
12 Mar 08 UTC
Unable to create winner takes all
Under new game there is simply no option for it for me.
12 replies
Open
Wombat (722 D)
14 Mar 08 UTC
Settings?
Just noticed that you can't change your password anymore- is that deliberate?
1 reply
Open
Puebloune (608 D)
11 Mar 08 UTC
New way to do rankings. (humble proposition)
Would it be possible to take in consideration the points you actually put in one game? This would make the ranking more accurate. Some people have a lot of points invest in games but are close to 0 actual point and are very low in the rankings, which is very far from being accurate.

I guess its been proposed before, but I am just saying.
11 replies
Open
ednos (529 D(S))
14 Mar 08 UTC
Phase End
I thought the phase should end when everyone finalizes, but apparently that's not the case. Do we still have to wait the seventeen hours left, or is there a way to get it to move faster?
2 replies
Open
Petr Dlouhý (100 D)
11 Mar 08 UTC
New map
Hello, I am currently working on the svg version of the map. There are several things, that should be fixed up, before it will be usable. Although it is not finished yet it looks quite nice, I thing. Here you can see preview:
http://stary.czp.cuni.cz/petr/dipl/map.svg.php?gid=3&gdate=0
It is freely scalable:
http://stary.czp.cuni.cz/petr/dipl/map.svg.php?gid=3&gdate=0&scale=0.5

The main problem now is, that I can't get correct data about history from database. I also should make it working in IE with plugin (currently it is workink only in Opera or Firefox).

(this is related to previous thread, but I prefered to post it like new one)
Petr Dlouhý (100 D)
11 Mar 08 UTC
Ps: I am doing this on version 0.74, but here is runing version 0.80. On Sourceforge I can get only 0.74 version, or this version is from SVN? I tried SVN version, but I couldn't get it vorking.
Petr Dlouhý (100 D)
12 Mar 08 UTC
Please, could somebody write me, where can I get 0.80 version of source code. I have tried CVS (sorry for confusion in previous post, it is not SVN), but the version on there is not version running here (for example, in that code are not different coloured arrows in map).
kestasjk (95 DMod(P))
12 Mar 08 UTC
Hi Petr, very interested in this work. You might have read on the FAQ that I was interested in getting help from people who know SVG

As soon as phpDip is debugged to a reasonable level I'll release the source to sourceforge, at the moment it still needs fixes every day (though the number is going down fast), so there wouldn't be much use in posting it now.

Also the new map code should be much easier for you to hook into; because there's now a drawMap class, which I could define an interface to, and your SVG class could implement the same interface as my GD drawMap class, and you wouldn't need to get data from the database.
XiangYu (144 D)
12 Mar 08 UTC
i cant view any of these maps, i get a internet pop up saying it doesnt exist or it cannot be found, is there any way you could host the map via photobucket or something, i've heard good reports about the map so i'm intrigued to find out whats it like.
Petr Dlouhý (100 D)
12 Mar 08 UTC
kestasjk: did you get the email? Could you please post me the code (or upload it on CVS), so I could work on current version?

XiangYu: what browser are you using? The current version is working only in Opera/Firefox, as I wrote.
XiangYu (144 D)
12 Mar 08 UTC
I didn't read it properly as just proven by yourself, i only have IE, so will there be any other way besides the plugin to let me see it?
Petr Dlouhý (100 D)
12 Mar 08 UTC
Internet Explorer is the only single one of the main browsers that is not supporting SVG - there must be plugin installed in to view it. Other posibility to view the map would be to render it on server (like Wikipedia do), but then woud be all advantages of SVG gone.
Petr Dlouhý (100 D)
12 Mar 08 UTC
You can read more about SVG here:
http://en.wikipedia.org/wiki/Svg
XiangYu (144 D)
12 Mar 08 UTC

hmm, i downloaded 2 IE plugins to make me view it, and i still get *it cannot save the file because IE cannot access the site or the site is unnavailable/it doesn't exist*

I guess i'll view it if its put on, if you put it on this site, all IE users wont need to download stupid plugins that dont even work - do they xD
Petr Dlouhý (100 D)
12 Mar 08 UTC
Sorry, I didn't write it clearly. Current version of my map si not working in Explorer at all (and the map is also not showing real situation of the game - it is just not complete yet, it is just a preview)! I am plannin IE support in the future, but the plugin (there is plugin from Adobe just like for Flash) will be needed as long as there will be no native support of SVG in IE.
Petr Dlouhý (100 D)
12 Mar 08 UTC
And the map is almost indipendent on the rest of the application, so the old map could be working side by side the new one.
alamothe (3367 D(B))
12 Mar 08 UTC
doesn't work in opera :-(
figlesquidge (2131 D)
12 Mar 08 UTC
I know the principals behind SVG. For phpdiplomacy it would greatly reduce the size of maps (obviously). I'm just wondering, how easy is it to modify SVG through javascript. From what I remember it could be done happily, but took some rather long code? If not then I think we should jump straight to SVG from the current map (once people decide on the colour scheme)
Petr Dlouhý (100 D)
12 Mar 08 UTC
alamothe:
Sorry, I am running Opera weekly build, and I foregot to test it in latest stable version.

figlesquidge: Size of maps is unfortunately bigger (more than 0.5MB - there are lots of nodes on coastline; on the other side whole map could be cached, because the situation is set by css) - if you know, how to reduce size, I would take your advice. What I do through javascript is just changing of php generated stylesheets, so it is not something dificult (but I must find out, how to do it in Explorer).
figlesquidge (2131 D)
12 Mar 08 UTC
Well, I know what you mean about using javascript&php like that, I'm just wondering this, which is the last point before I am 100% behind SVG: can you run javascript commands based on clicking on an item in an SVG, and can you draw SVG with javascript on the fly?
kestasjk (95 DMod(P))
12 Mar 08 UTC
Petr; I'd rather wait a week or two before releasing the source. At the rate the number of bugs/day is declining I expect there'll be no serious bugs left in a week

About the size, I could have a go at reducing the number of required nodes. It looks like you converted from the large map automatically, which may have used more nodes than necessary. Also the svg will be much smaller when compressed on disk, because it's a text-file that can be easily compressed.

fig; yes you can do that sort of thing, but unfortunately it's very browser-specific. SVG doesn't run on IE without 3rd party plugins, which is why I never went with it before.

It would be good to add as an option though, if someone else implements it, since it would take little memory and process time compared to a graphical image map, and the ability to click&drag using javascript has a lot of potential.
kestasjk (95 DMod(P))
12 Mar 08 UTC
Oh and Petr yes I got your e-mail, but since you posted here too I thought I'd respond here
Petr Dlouhý (100 D)
12 Mar 08 UTC
figlesquidge:
-commands based on clicking: easili, the same as in html, as you can notice, I am using onmouseover
-svg by javascript: I hope it is possible, but I don't using it (I am using php and css for that)

kestasjk:
Yes, I converted big map. Maybe we could make big and small (with number of nodes reduced) version of the map - but now I will focus on code. I am not sure about support of compressed files in browsers, but at least Opera is familliar with gziped svg.

Petr Dlouhý (100 D)
12 Mar 08 UTC
easili->easily
Petr Dlouhý (100 D)
12 Mar 08 UTC
kestasjk: I ment that you get me the code, so I could make the map directly for the new version (you have written something about new map interface). Are those bugs related to the map, or the interface will be grately changed? Send me by a mail, or upload it to CVS (it is where unstable code should be).
figlesquidge (2131 D)
12 Mar 08 UTC
To add another thing: if the map really is so complex, it doesn't matter much. After all, the shapes of the nations will always be the same for every game, and so that can be cached locally. Thus all that must be changed between maps are the locations of units, arrows and the colours
kestasjk (95 DMod(P))
13 Mar 08 UTC
To hold you over until next week here is the map drawing interface. As long as your class implements this interface it won't need to deal with retrieving data from the database etc.

interface iDrawMap
{
// $smallmap is true if drawing the smaller map, false otherwise
public function __construct($smallmap);

// Draw territory names onto the map
public function addTerritoryNames();
// Draw a caption in the center, like "Game over: foobar won"
public function caption($text);
// Color a territory as belonging to a country
public function colorTerritory($terrName, $country);

// Add a unit at the given spot
public function addUnit($terrName, $unitType);
// Draw a marker on a unit indicating which country it belongs to
public function countryFlag($terrName, $country);

// Draw a move arrow
public function drawMove($fromTerr, $toTerr, $success);
// Draw a support hold arrow
public function drawSupportHold($fromTerr, $toTerr, $success);
// Draw a support move arrow
public function drawSupportMove($terr, $fromTerr, $toTerr, $success);
// Draw a convoy arrow
public function drawConvoy($terr, $fromTerr, $toTerr, $success);

// Draw a retreat arrow
public function drawRetreat($fromTerr, $toTerr, $success);

// Draw a unit, plus a marker showing that it's new
public function drawCreatedUnit($terr, $unitType);
// Draw a marker showing that a unit was destroyed here
public function drawDestroyedUnit($terr);
// Draw a marker showing a unit was dislodged here
public function drawDislodgedUnit($terr);
// Draw a marker showing that a standoff occurred
public function drawStandoff($terr);

// Write the map to the given location
public function write($filename);
}
kestasjk (95 DMod(P))
13 Mar 08 UTC
Anything with "terr" in it is a territory name, like 'St. Petersburg', $success is always a bool, $country is a country name like 'Neutral','England','Russia', etc, and $unitType is 'Army' or 'Fleet'
Petr Dlouhý (100 D)
13 Mar 08 UTC
Hm, can I have something, how can I get shortname from the long version - my elements have shortname id-s. And, id-s in XML shloud not contain brackles, so could you please change the names of coastline territories (Spa_(N) -> Spa_N)?
Petr Dlouhý (100 D)
13 Mar 08 UTC
It would also be nice to have function giving me a colour for the separate types of arrows, so it can be changed on one place.
figlesquidge (2131 D)
13 Mar 08 UTC
Well, I would suggest Petr that you just write an arrow drawing function, and each of the 'drawRetreat' etc fuctions be just a wrapper, running the other function with a set colour. Thus by changing the drawRetreat function then very simply the colour can be changed, whilst the actual arrow drawing method is kept separately.
Petr Dlouhý (100 D)
13 Mar 08 UTC
Of course, I can make the function myself. I just thought that if you have countrycolours function you also have arrowscolours...
Petr Dlouhý (100 D)
13 Mar 08 UTC
Other thing: I have all unites colored, so I would like to have function like

public function addColouredUnit($terrName, $unitType, $country);

It would be enough to add $country parameter to addUnit, wich will be unused by the PNG map.
figlesquidge (2131 D)
13 Mar 08 UTC
How do you intend to colour them? This may sound stupid, but we don't want the unit to dissappear when over it's own country...
Petr Dlouhý (100 D)
13 Mar 08 UTC
figlesquidge:
The colour of the unit is different (darker) than the counry... see the map.

kestasjk:
I am almost finished with the Interface, and I would like to test it with the game.
Petr Dlouhý (100 D)
13 Mar 08 UTC
The map is now working also in Explorer and Opera 9.26. Same address, but it still does not show real situation.
figlesquidge (2131 D)
13 Mar 08 UTC
Assuming you already have the plugin that is. Otherwise it just tries to download the file, but to sort that out depends on how it's included in the page
Petr Dlouhý (100 D)
13 Mar 08 UTC
Hm, that is little inconvenient. It is just pure SVG now (but in final, it should be integrated in the page / both). I should find which integration method will ask for installing the plugin.
sean (3490 D(B))
14 Mar 08 UTC
looks interesting with the coloured units.
on an artistic note i think the fleets look a little bit like cruise ships rather than battleships and the tanks look a bit modern for 1901.
but thats not a big issue
Petr Dlouhý (100 D)
14 Mar 08 UTC
sean: You are right, it is Queen Marry from this image: http://commons.wikimedia.org/wiki/Image:Bateaux_comparaison2.svg - it was just for testing. Everybody, please fell free to give me better images.
By the way, tank is also a bit modern for 1901, but it is used widely for diplomacy.
Petr Dlouhý (100 D)
14 Mar 08 UTC
kestasjk:
I wanted to put my files into "map" directory, but including of header.php stopped working. I think, you should use require(dirname(__FILE__).'/something.php'); instead of require('something.php'); Read coments at http://php.net/require .
I get it back to work relatively easy - i made simple unix script, which corrected the requires (in all files):
find -execdir sed -i "s/require('/require(dirname(__FILE__).'\//" {} +
(and I also changed errorlog directories)
alamothe (3367 D(B))
14 Mar 08 UTC
the current map is ok :-)


37 replies
kestasjk (95 DMod(P))
14 Mar 08 UTC
The outdated map problem
I think I finally got to the root of the problem: The code was saving pre-determined map folders, so that it wouldn't need to check that the game's map-cache folder exists over and over. It used a static variable to do this, and I thought a static variable's scope would be limited to a single object's initialization. Turned out the same map-cache-folder variable was being used by other games too, and static variable scope is global

So game ID 1234 would wipe its maps successfully, but gameID 1235 would be processed right after that, and would try to wipe its maps from 1234's map-cache folder

Now that has been resolved I think maps should always be up to date from now on.
1 reply
Open
FreeSample (160 D)
13 Mar 08 UTC
Choosing countries
It would be hard to implement an option to select the country you would like to play with? Guess that can be optional, since, if I am right, in the tabletop game there's no choosing.

What do you think of it?
6 replies
Open
sean (3490 D(B))
13 Mar 08 UTC
CD Explosion
Just scrolling down the list of joinable games...seems to have expanded quite rapidly recently. There are a lot of players going into CD in 1902. new players i think.
whats up with this? are new people joining the site and games and not realizing you need to check the game every 24 hours? some more sinsiter reason?
just recently ive had a few games where some players have joined but failed to make even the spring 01 move.
6 replies
Open
abgemacht (1076 D(G))
13 Mar 08 UTC
Map Update Please
http://phpdiplomacy.net/board.php?gameID=3135
New builds show up on drop down bars but not on map. Could someone please update the map. Thanks
1 reply
Open
Argento (5723 D)
13 Mar 08 UTC
I see dead units
I can't see the created or disbanded untis in two games.

http://phpdiplomacy.net/board.php?gameID=3167
http://phpdiplomacy.net/board.php?gameID=3220
1 reply
Open
XiangYu (144 D)
13 Mar 08 UTC
PHP Map V3

Small map: http://i16.photobucket.com/albums/b13/Nadagashi/PHPMapSmallcopy.jpg

Large Map : http://i16.photobucket.com/albums/b13/Nadagashi/PHPMapv3.jpg

___________

I tried to tone down the colours but keep the saturation levels quite high, i dont think i could tweak it a little more without specific details on what people would want doing. If i get no feedback concerning detailed improvements, or if we know for sure the SVG map is being used, then i'll stop making new ones.

Thanks to everyone who rated the other maps i did though, i appreciated it.

19 replies
Open
Sirither (100 D)
13 Mar 08 UTC
Map not adjusted
gid=2886
0 replies
Open
el_maestro (14722 D(B))
13 Mar 08 UTC
Question about move
Can a fleet from Norway go to St.Petersburg or it has first to go to Barents sea ?
Can a fleet from Norway support St.Petersburg ?

Thanks
2 replies
Open
figlesquidge (2131 D)
13 Mar 08 UTC
Old links
Kestas, please will you add in little checks making old links valid again. As many will have noticed game id's are now called gameID instead of gid, and user's have userID instead of uid. Please would you add in a little element so that old links which use the old definitions still work
10 replies
Open
abgemacht (1076 D(G))
13 Mar 08 UTC
Destroy Bug
http://phpdiplomacy.net/board.php?gameID=3107
I have forces in Venice, Vienna, Tyrrhenian Sea, and Sevastopol. I need to destroy a unit, but instead of given a choice of Sevastopol, I'm given a choice of Galicia.
2 replies
Open
el_maestro (14722 D(B))
13 Mar 08 UTC
Bug or Rule ?
I am playing England in the following game ( see map http://phpdiplomacy.net/mapstore/317/3176/3176-3-largemap.png)

I did attack the Russia Denmark Fleet from Fleet in North Sea supported by Fleet in Belgium. Was it a valid move?.
Looks like it had been refused whereas Denmark had not support.

Thanks
3 replies
Open
abgemacht (1076 D(G))
13 Mar 08 UTC
Rule Clarification
Hey, this is my first time playing diplomacy; could someone please clarify a rule for me?
In http://phpdiplomacy.net/board.php?gameID=3107 Austria has a force in Sevastopol and Turkey has a force in Galicia. It is currently the build season, so why weren't those lands conquered by those respective players?
Thanks
2 replies
Open
Asriel Belacqua (285 D)
13 Mar 08 UTC
Bug at Rumania?
http://phpdiplomacy.net/board.php?gameID=3210

Why no stand off?

Sev supports Ukraine into Rumania
Serbia supports Bulgaria into Rumania
4 replies
Open
Lawrance82 (156 D)
13 Mar 08 UTC
Setting of new game
Is difficult to define setting for new games such as: turn duration, number of players, ecc.
2 replies
Open
thewonderllama (100 D)
12 Mar 08 UTC
[BUG] (minor) html escaped < and >
in game win message (maybe in the other game ending messages too?), the < and > in the img tag are html escaped, so i see "<img src="images/coin.png" />!" instead of the coin image.
4 replies
Open
Kangaroo (0 DX)
13 Mar 08 UTC
game frozen, due now
my little pony frozen!
1 reply
Open
figlesquidge (2131 D)
13 Mar 08 UTC
Order Text
Whilst I think having the orders on the map will be much neater, I am going to join the crowd asking for text orders to return. There are some occasions when with many nations all supporting each other in almost circular moves that it becomes very difficult to understand quite which is which. Please could we have another tab which just lists the orders from last phase, using the same wording as when they are finalized.
0 replies
Open
Page 80 of 1419
FirstPreviousNextLast
Back to top