NationStates Jolt Archive


From the Maker of the GDP Calculator...

10-10-2003, 21:00
Comes "Warring Nationstates!" (Or the War Calculator or whatever you wish to call it).

Based off of the site in this thread (http://www.nationstates.net/forum/viewtopic.php?t=76080&start=0&postdays=0&postorder=asc&highlight=), the war calculator gathers the information necessary to do the calculations on its own (much like the GDP calculator), making it a much easier process to determine who wins a war... Without even needing to look at the two countries' descriptions!

So try it out at http://www.pipian.com/stuffforchat/warcalc.php

The required variables are, of course, ?attacker=(nation name)&defender=(nation name)

So for example:

http://www.pipian.com/stuffforchat/warcalc.php?attacker=mac_anu&defender=f-cho

would pit my two nations against each other, as if Mac Anu was attacking F-cho. Also note that &randomize=1 and &popspec remain from the GDP calculator (though the latter is now &popspeca and &popspecd for the attacker and defender appropriately).

I may change the algorithm for the war calculator later, but for now I'm using the exact same one as from the old Javascript war calculator.
Tactical Grace
10-10-2003, 21:02
What does Might mean? Is it analogous to a kill ratio or strategy points or something?
imported_Polok
10-10-2003, 21:03
oooooooh very good
NuMetal
10-10-2003, 21:09
Nice! :)
10-10-2003, 22:35
What does Might mean? Is it analogous to a kill ratio or strategy points or something?

More or less. It's an index that is based off of the population, economy, political freedom, and civil rights. The calculation does not completely compare the two though. The defender is at a 10% advantage (if the attacker is up to 10% higher in might than the defender, defender still wins)
Scandavian States
10-10-2003, 22:53
Is it possible to allow for multiple nations in either category?
Amyst
10-10-2003, 22:59
Niiiice. I didn't realize my nation was considered that strong. Too bad I never RP wars - hell, I barely RP at all. But, very good job.
Rapid Dr3am
10-10-2003, 23:00
Register Globals, is a security risk. 8)
10-10-2003, 23:13
When they fix it on my host, I'll fix it in my scripts ^^

(Actually, I'll probably fix it in my scripts sooner than that)
10-10-2003, 23:13
Is it possible to allow for multiple nations in either category?

This may come in the future.
NuMetal
11-10-2003, 01:25
Maybe you could have it so you can put names of regions and it will combine the might of their members
Bayorta
11-10-2003, 01:26
Isnt this kind of unfair?

I mean a war involves many things... not just straight battles... Oh and doesnt this kind of take the fun out of Rping?

Yeah man this would really take the fun out of it all! AND unfair.
11-10-2003, 02:13
Then you don't have to use it. Worst case scenario, a comparison of Mights might show you how difficult it'd be for you to win (or how easy). Sorta quantifying the difficulty of the enemy.
Arribastan
11-10-2003, 02:30
It says NuMetal would kill me. i don't think so... :x
(658 million pop.)
11-10-2003, 02:40
Actually, it doesn't as long as he's the one attacking you. His might is slightly better, but you still have the win based on home field advantage (the only factor not explicitly stated on the output page. Attacker's might is multiplied to 0.9 and THEN compared to the defender.)
Ackbar
11-10-2003, 06:29
http://www.pipian.com/stuffforchat/warcalc.php?attacker=melkor_unchained&defender=ineptia

Looks good to me. :twisted:
The Most Glorious Hack
11-10-2003, 06:38
Eeeeexcelent...

The Most Glorious Hack Wins!

The Most Glorious Hack (Attacker)

Population: 1,192,000,000
Civil Rights: Excellent
Economy: Powerhouse
Political Freedom: Average
Might: 7,457

[violet] (Defender)

Population: 0
Civil Rights:
Economy:
Political Freedom:
Might: 0

:lol:
Automagfreek
11-10-2003, 06:40
Eeeeexcelent...

The Most Glorious Hack Wins!

The Most Glorious Hack (Attacker)

Population: 1,192,000,000
Civil Rights: Excellent
Economy: Powerhouse
Political Freedom: Average
Might: 7,457

[violet] (Defender)

Population: 0
Civil Rights:
Economy:
Political Freedom:
Might: 0

:lol:

http://www.automags.org/forums/attachment.php?s=&postid=632818
Milesia
11-10-2003, 10:58
Milesia Wins!
Milesia (Attacker)
Population: 1,595,000,000
Civil Rights: Superb
Economy: Frightening
Political Freedom: Excellent
Might: 11,963

Menelmacar (Defender)
Population: 1,675,000,000
Civil Rights: Superb
Economy: Frightening
Political Freedom: Average
Might: 10,678


... :shock: :?
11-10-2003, 11:22
This would be good, if it didn't make the bizarre assumption that political freedoms or civil rights affected a military.

*cough* Sparta. *cough* The Blitzkrieg (in the early years of WW2). *cough* Viet Cong.

I'm curious, I have to admit, as to why those things would be involved. Economy and population clearly make a difference, as does concentration on defence (which isn't even factored!), let alone GDP spend per capita (also not factored).

Whilst it's a great idea in general, I personally feel that having political freedoms or civil rights affect things is bad - easily arguable one way or another. Just like the same assumption erroneously made in the GDP calculator ... it makes no sense.

That said, kudos. Wish I had the programming skill to cook up something similar.
11-10-2003, 11:29
Hey, there is an AutoMag cookie attached to this thread, how is that possible? :?
-------------------------------------------------------------------------
*
CorinThe
The getting help section! (http://www.nationstates.net/cgi-bin/index.cgi/page=help) (for all your gaming problems)http://www.nationstates.net/forum/templates/subSilver/images/whosonline.gif
The Central Pacific (http://www.nationstates.net/cgi-bin/index.cgi/page=display_region/region=the_central_pacific) (for The Pacific alternative.)
NuMetal
11-10-2003, 14:17
This would be good, if it didn't make the bizarre assumption that political freedoms or civil rights affected a military.
The Blitzkrieg (in the early years of WW2).


You do realize that the Germany ended up losing anyway so its hard to say thats a good example(I know what you mean though)

but anyways,I do think civil rights and political freedoms do effect morale somewhat,and wether or not a nation has compulsory military service is part of one of those,anyways maybe not quite as much as it does here but still
11-10-2003, 17:26
I agree. The algorithm isn't perfect, but it's not my own, and in the future, I will probably come up with my own that might (hopefully) be better)
Vrak
11-10-2003, 21:10
Vrak Wins!
Vrak (Attacker)
Population: 1,334,000,000
Civil Rights: Some
Economy: Frightening
Political Freedom: Few
Might: 9,805

Melkor Unchained (Defender)
Population: 1,409,000,000
Civil Rights: Some
Economy: Frightening
Political Freedom: Outlawed
Might: 8,137


OOC: Whoops! :lol:
Rapid Dr3am
12-10-2003, 00:34
When they fix it on my host, I'll fix it in my scripts ^^

(Actually, I'll probably fix it in my scripts sooner than that)

If this is a reply to me, then you probelry don't understand register globals.

http://uk2.php.net/register_globals
12-10-2003, 00:39
I'm fairly aware of what register_globals is, but I don't control the server. I'll switch to $_GET in my scripts eventually (sooner rather than later).

Thus, when they fix it on my host (they turn off register_globals), I'll fix it in my scripts (switch to $_GET)
Rapid Dr3am
12-10-2003, 00:42
I'm fairly aware of what register_globals is, but I don't control the server. I'll switch to $_GET in my scripts eventually (sooner rather than later).

Thus, when they fix it on my host (they turn off register_globals), I'll fix it in my scripts (switch to $_GET)

$HTTP_GET_VARS

That's better.
12-10-2003, 00:57
True, but it's deprecated. I said $_GET, but I meant both...
Rapid Dr3am
12-10-2003, 01:23
I find my way better.

Then again, I have little php experience.

Regards,
Rapid Dr3am.
phpBBSupport.co.uk Administrator (http://www.phpbbsupport.co.uk).
Nianacio
12-10-2003, 05:43
Nianacio Wins!
Nianacio (Attacker)
Population: 1,792,000,000
Civil Rights: Superb
Economy: Frightening
Political Freedom: Superb
Might: 14,112

Kitsylvania (Defender)
Population: 1,780,000,000
Civil Rights: Frightening
Economy: Reasonable
Political Freedom: Excellent
Might: 0Heh, Kitsylvania has 0 might...
Drum Gods beats me even if I'm defending.
12-10-2003, 06:50
Chances are that Reasonable isn't listed in the script. Will be fixed tomorrow.
Ackbar
13-10-2003, 07:07
Vrak Wins!
Vrak (Attacker)
Population: 1,334,000,000
Civil Rights: Some
Economy: Frightening
Political Freedom: Few
Might: 9,805

Melkor Unchained (Defender)
Population: 1,409,000,000
Civil Rights: Some
Economy: Frightening
Political Freedom: Outlawed
Might: 8,137


OOC: Whoops! :lol:

You beat me too.


Comes "Warring Nationstates!" (Or the War Calculator or whatever you wish to call it).

Based off of the site in this thread (http://www.nationstates.net/forum/viewtopic.php?t=76080&start=0&postdays=0&postorder=asc&highlight=), the war calculator gathers the information necessary to do the calculations on its own (much like the GDP calculator), making it a much easier process to determine who wins a war... Without even needing to look at the two countries' descriptions!

So try it out at http://www.pipian.com/stuffforchat/warcalc.php

The required variables are, of course, ?attacker=(nation name)&defender=(nation name)

So for example:

http://www.pipian.com/stuffforchat/warcalc.php?attacker=mac_anu&defender=f-cho

would pit my two nations against each other, as if Mac Anu was attacking F-cho. Also note that &randomize=1 and &popspec remain from the GDP calculator (though the latter is now &popspeca and &popspecd for the attacker and defender appropriately).

I may change the algorithm for the war calculator later, but for now I'm using the exact same one as from the old Javascript war calculator.

This thing do any difference for attacker V defender? I think that defender should get home field advantage, does your calculator adjust for this?

Thanks, and good service to the NS community. Thanks for the neat lil things you make for the players…
Naleth
13-10-2003, 07:22
This thing do any difference for attacker V defender? I think that defender should get home field advantage, does your calculator adjust for this?

The defender is at a 10% advantage (if the attacker is up to 10% higher in might than the defender, defender still wins)
Ackbar
13-10-2003, 07:39
This thing do any difference for attacker V defender? I think that defender should get home field advantage, does your calculator adjust for this?

The defender is at a 10% advantage (if the attacker is up to 10% higher in might than the defender, defender still wins)

Thank you Sai.
Sketch
13-10-2003, 15:11
<tag tag tag tag>
Sketch
13-10-2003, 15:23
My raw stats according to the calc:

Population: 2,118,000,000
Civil Rights: Outlawed
Economy: Frightening
Political Freedom: Outlawed
Might: 14,561

Suck on that!
15-10-2003, 12:24
This would be good, if it didn't make the bizarre assumption that political freedoms or civil rights affected a military.
The Blitzkrieg (in the early years of WW2).


You do realize that the Germany ended up losing anyway so its hard to say thats a good example(I know what you mean though)

but anyways,I do think civil rights and political freedoms do effect morale somewhat,and wether or not a nation has compulsory military service is part of one of those,anyways maybe not quite as much as it does here but still

Germany arguably only lost because it attempted the ridiculous "land war against Russia" instead of staying to swat Britain with operation Sea Lion. The troops used in the Blitzkrieg were inspired by national fervour - they didn't want political freedoms or civil rights, they wanted to be great. Likewise, the Roman Empire - no political freedoms or civil rights for soldiers there. Alexander the Great sure didn't hold elections.

What makes a soldier have high morale is fighting for what he believes in. That can be as diverse as money to love to a political ideal. In the current world, the single best-equipped, best-trained army is Israel's. Israel is not a Capitalizt Paradise, it's almost certainly a Father Knows Best State at best (there are elections, and Israelis have some civil rights). Conversely, the second best-trained (although not best equipped) army in the world is the British - and Britain is pretty liberal, as countries go.

I'm not trying to start an argument with die-hard Americans about why the US army is better here (I'm going via the amount mercenaries with backgrounds from the above armed forces earn, actually. Seems to me that is as good an assessment as you'll get), but I am saying that any country can have a military with a high morale or a low morale, depending on what said country feeds its men in the way of propaganda/brainwashing etc.