NationStates Jolt Archive


Javascript War Engine

29-09-2003, 14:23
I've compiled a small, crude javascript site for calculating probable outcome of war between two nations. This is for those of you who don't want to role-play the war, just fight it on quickly. It's using four basic characteristics - population size, civil rights, economy and political freedoms - and as I said, it's quite crude and primitive.

www.pradera-castle.prv.pl/war.html
29-09-2003, 14:28
mmmmm, it's very slow-loading to me.
But it's nice 8)

Anyways, why do people want war in the first place? If you want war, go play Age of Empires or Command and Conquer :P Or "Gangsters" :lol:
Sketch
29-09-2003, 15:39
<tag, incase this pans out>
Sketch
29-09-2003, 15:45
Interesting, I ran it through a few trial runs. I assume this is only good for a simple invasion setup. Still, worth looking into and developing. Good work. Keep it up. I expect to see a fully adptable version within 24 hours :twisted: :wink:
29-09-2003, 17:21
Neat! Although: The highest rating in Civil Rights is Frightening, not Widely Abused or Corrupted. I've had Frightening since April and it's not as though I've stopped making freedom-increasing decisions.
29-09-2003, 17:40
I got the rating scale from the official thread in this forum.
Peng-Pau
29-09-2003, 19:49
*chuckles*

http://balthazar.simpli.biz/~veratien/images/siri_vs_melkie.jpg

Well that's that settled then... :P
1337HAXORS
29-09-2003, 20:12
Move the Political Freedom Civil Rights Economy to the order as it is in NS.

8)

Good job.
Sirocco
29-09-2003, 20:58
Wow! Very smart!

Except I seem to have an annoying tendency to get thrashed. :?
29-09-2003, 21:22
Move the Political Freedom Civil Rights Economy to the order as it is in NS.




Sorry, this is because I messed them up in the algorithm in the first place :oops: as soon as I have some more time than 30s to spend with my site I'll fix it.
Any ideas on how to implement alliances better than just repeating entire form several times?
29-09-2003, 21:31
There, the order of characteristics is fixed.
I'm fairly new to this game. Still waiting for ideas on improvement.
Soviet Democracy
29-09-2003, 23:54
The link did not work for me. :(

Well, it is not like I could win a war anyways. :wink:
NuMetal
30-09-2003, 00:26
This is cool,it could probably be used with the nation xml feed so all you need is the nations name,and as for alliances I suppose you could just have a way to put in a list of nations and add them all,the regional xml feed could maybe be used to find out wars between regions?
imported_Cspalla
30-09-2003, 00:29
Has limits though. For one thing theres no acounting for tactics. Tatics can win a war, even if you are vastly outnumbered.
30-09-2003, 03:57
That's just brilliant :D

--Felix (Konania).
imported_Cspalla
30-09-2003, 03:59
Indeed, is nice. I'm just afaird some n00bs going to say "I no0kz you! It says I wins!" Hopefully that won't happen.
30-09-2003, 04:05
SOmeone w/ PHP/Perl access could help you parse the xml datafeed so that you just enter the two names of the nations. Would be quite interesting, actually.
The Most Glorious Hack
30-09-2003, 04:56
Hm. Basic indeed. According to the calculator, I would win a war against GMC, depsite him having a much larger army.
30-09-2003, 05:16
Shows that Whittier could easily take over South Pacific.
Even though SP has more civil rights, more political freedoms and a better economy.
30-09-2003, 09:53
That's probably because of civil rights. The way I see it (and the way I wrote the algorithm), more civil rights means less people are forced to go to war against their will (pacifists, etc), decreasing the army size.
30-09-2003, 09:54
SOmeone w/ PHP/Perl access could help you parse the xml datafeed so that you just enter the two names of the nations. Would be quite interesting, actually.

Yes, that would be nice. I don't know where to get those data myself.
30-09-2003, 09:58
Has limits though. For one thing theres no acounting for tactics. Tatics can win a war, even if you are vastly outnumbered.

Well, that's where roleplaying is helpful :) What social characteristics do you think should determine whether the army is led well or poorly?
HideOut
30-09-2003, 10:02
Defending armies should have a 50% bonus to make it more realistic.
30-09-2003, 11:35
I was thinking of making the defence bonus dependant on the terrain type - barren, lush, etc. But I'd need a list of all available terrains.
Lemmingcus Meenicus
30-09-2003, 12:39
How about taking one more factor that really DOES apply to Military Strength?

Arm's Manufatcuring sector - For instance I tested my nation against my friends - We're similiar in size and economy - we differ in rights - I'm 190'th in the world for Arms, and he's in the 65,000's - I'm also one of the safest nations, he's thousands behind me - and most if all of my economic indicators put me in the top 100 of the world - trouncing him on every front -

Yet he's almost 40% better than me because he has political freedoms?
30-09-2003, 20:15
Arms Manufacturing is derivative of other characteristics, besides, you can be a large producer and exporter of weaponry without having a huge army yourself, like Scandinavians, for example...
Automagfreek
30-09-2003, 21:06
http://invisionfree.com/forums/WMNK_Coalition/index.php?act=Attach&type=post&id=3410

Ah good, now that that's settled! :wink: :lol:

I also did it with me attacking Melkor, and it said he would win.

However, if Melkor attacked me, it said I'd win.

Nifty toy. :)
Lemmingcus Meenicus
01-10-2003, 12:31
Arms Manufacturing is derivative of other characteristics, besides, you can be a large producer and exporter of weaponry without having a huge army yourself, like Scandinavians, for example...

But the intent of my country all along was building a war machine. I wouldn't export anything - and I think that "intent" should be a part of any figuring for war potential.

Azmodium is trying to get all sorts of top descripters for his site - OTOH - I'm always approving anything that will help the military in order to strengthan my country that way.

Instead of balancing the war simulator on civil rights and some such nonsense ;) you should be basing it off of intent - like economy and Arms manufacturing.
Ackbar
01-10-2003, 16:17
How about taking one more factor that really DOES apply to Military Strength?

Arm's Manufatcuring sector - For instance I tested my nation against my friends - We're similiar in size and economy - we differ in rights - I'm 190'th in the world for Arms, and he's in the 65,000's - I'm also one of the safest nations, he's thousands behind me - and most if all of my economic indicators put me in the top 100 of the world - trouncing him on every front -

Yet he's almost 40% better than me because he has political freedoms?

Maybe he has an army of ACLU soldiers....
Konania
01-10-2003, 20:35
SOmeone w/ PHP/Perl access could help you parse the xml datafeed so that you just enter the two names of the nations. Would be quite interesting, actually.


Yes, that would be nice. I don't know where to get those data myself.

Here's the NATIONDATA feed:

http://www.nationstates.net/cgi-bin/nationdata.cgi

And the REGIONDATA feed:

http://www.nationstates.net/cgi-bin/regiondata.cgi
Social Engineering
01-10-2003, 20:47
What are the numbers in the feed? I think I got population and tax rate, but what's the last number?
Konania
01-10-2003, 20:50
[code:1:535d05e64f] <?xml version="1.0" ?>
- <NATIONINFO>
<NAME>Konania</NAME>
<TYPE>Democratic Republic</TYPE>
<FULLNAME>The Democratic Republic of Konania</FULLNAME>
<MOTTO>Audmeus jura nostra defendre</MOTTO>
<CATEGORY>Democratic Socialists</CATEGORY>
<UNSTATUS>UN Member</UNSTATUS>
- <FREEDOM>
<CIVILRIGHTS>Good</CIVILRIGHTS>
<ECONOMY>Frightening</ECONOMY>
<POLITICALFREEDOM>Average</POLITICALFREEDOM>
</FREEDOM>
<REGION>Quickbasic Legion</REGION>
<POPULATION>1576</POPULATION>
<TAX>79</TAX>
<ANIMAL>eagle</ANIMAL>
<CURRENCY>koner</CURRENCY>
<FLAG>http://www.nationstates.net/images/flags/uploads/konania.jpg</FLAG>
<MAJORINDUSTRY>Information Technology</MAJORINDUSTRY>
<GOVTPRIORITY>Defence</GOVTPRIORITY>
<LASTLOGIN>1065036236</LASTLOGIN>
<LASTACTIVITY>24 minutes ago</LASTACTIVITY>
</NATIONINFO>[/code:1:535d05e64f]

Which number?

--Felix
01-10-2003, 22:17
Ne'er mind :oops: Back to php for dummies for me :)
(BTW, Social Engineering is one of my puppets, forgot to log-out)
Peng-Pau
01-10-2003, 23:30
LASTLOGIN is a MySQL time. there's a function somewhere in php which'll uncrunch it for you...
01-10-2003, 23:54
SOmeone w/ PHP/Perl access could help you parse the xml datafeed so that you just enter the two names of the nations. Would be quite interesting, actually.

I might do this in a couple of days...
Qaaolchoura
02-10-2003, 00:03
Yah need frightening for your civil rights.

I tried to do Sketch against Kitt but I couldn't do Kitt as she has Frightrning Civil Rights (http://www.nationstates.net/cgi-bin/index.cgi/target=display_nation/nation=Kitsylvania)

Obviously this also fails to take into account guerilla tactics and Melkor's Terrorism Strategy.
Steel Butterfly
02-10-2003, 03:30
Well...civil rights do not affect how good your soldiers are. Me loosing to Automagfreek is wrong. My population is larger...yet my "might" isn't. Soldiers don't need to have rights...they follow orders... :roll:
02-10-2003, 10:06
Well...civil rights do not affect how good your soldiers are. Me loosing to Automagfreek is wrong. My population is larger...yet my "might" isn't. Soldiers don't need to have rights...they follow orders... :roll:

Soldiers are civil before they join the army, thus civil rights affect your military might. Not all soldiers simply obey orders, if they are raised in a climate where political freedoms are abundant. Would you explode yourself for your country, when your leaders are sitting comfortable in their palaces?
-------------------------------------------------------------------------
*
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.)
Lemmingcus Meenicus
02-10-2003, 13:20
Yes, if you knew your wife and children would be executed if you didn't.

Seriously - the "Civil rights" bit isn't indicative of troop strength.

Like I said - My description is "The Holy Empire of Lemmingcus Meenicus is a massive, devout nation, renowned for its compulsory military service"

I'm in the top 200 for arms manufacturing, top fifty for basket weaving (to hold the crates of ammo) top 100 for manufacturing - top twenty for pizza making (to feed the troops) and so on and so forth - yet I'd lose to a nation that is similiar in size and 65,000 th in the world for arms? Just because they have different civil rights?

Tell that to the chinese.
02-10-2003, 15:00
Yes, if you knew your wife and children would be executed if you didn't.

Seriously - the "Civil rights" bit isn't indicative of troop strength.

But what if the government is Anarchist, and doesn't threatens to execute anybody. What if military service is not compulsory?
Seriously - you have a one-track mind :P
-------------------------------------------------------------------------
*
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.)
Sketch
02-10-2003, 15:19
Yah need frightening for your civil rights.

I tried to do Sketch against Kitt but I couldn't do Kitt as she has Frightrning Civil Rights (http://www.nationstates.net/cgi-bin/index.cgi/target=display_nation/nation=Kitsylvania)

Obviously this also fails to take into account guerilla tactics and Melkor's Terrorism Strategy.

Since the higher civil rights get, the weaker your might, Kit would get trounced anyways with the proper civil rights setting. Using corrupted civil rights for Kit - Sketch: 14066.25 might, Kit: 6447.76 might. Yeah....more than double :twisted: I think her motto says it all - "Love and Peace!"
Der Angst
02-10-2003, 15:48
According to this calculator, the US won in Vietnam.

~ DA Player, slightly sarcastic
Lemmingcus Meenicus
03-10-2003, 01:19
Yes, if you knew your wife and children would be executed if you didn't.

Seriously - the "Civil rights" bit isn't indicative of troop strength.

But what if the government is Anarchist, and doesn't threatens to execute anybody. What if military service is not compulsory?
Seriously - you have a one-track mind :P


Well yes. And that's my point. The country is being driven as a war machine without a conscience. Vietnam wouldn't of been an issue - it would of been a smoking crater. Iraq would not have been an issue - it would be a glass factory. North Korea would be oblitereated by anti-matter.

And not one person in the country would say dick about it..LOL

"Intent" is the key word here. You can keep your "civil Rights" They won't last three seconds under a Phased linear Quark inverter.
Qaaolchoura
03-10-2003, 01:31
[img]<image removed>

Ah good, now that that's settled! :wink: :lol:

I also did it with me attacking Melkor, and it said he would win.

However, if Melkor attacked me, it said I'd win.

Nifty toy. :)

Ah, so Automagfreek uses a Macintosh.

(I us a Think Pad btw, I just once saw screenshots of the same webpage on IBM Clones and Macs and IE and Netscape four pics total)
Goobergunchia
03-10-2003, 01:34
[img]<image removed>

Ah good, now that that's settled! :wink: :lol:

I also did it with me attacking Melkor, and it said he would win.

However, if Melkor attacked me, it said I'd win.

Nifty toy. :)

Ah, so Automagfreek uses a Macintosh.

(I us a Think Pad btw, I just once saw screenshots of the same webpage on IBM Clones and Macs and IE and Netscape four pics total)

So that would be an iAttack? ;-)
Ackbar
03-10-2003, 05:21
Yes, if you knew your wife and children would be executed if you didn't.

Seriously - the "Civil rights" bit isn't indicative of troop strength.

But what if the government is Anarchist, and doesn't threatens to execute anybody. What if military service is not compulsory?
Seriously - you have a one-track mind :P


Well yes. And that's my point. The country is being driven as a war machine without a conscience. Vietnam wouldn't of been an issue - it would of been a smoking crater. Iraq would not have been an issue - it would be a glass factory. North Korea would be oblitereated by anti-matter.

And not one person in the country would say dick about it..LOL

"Intent" is the key word here. You can keep your "civil Rights" They won't last three seconds under a Phased linear Quark inverter.

Why don't you write your own war engine, Lemming?
Lemmingcus Meenicus
03-10-2003, 05:34
Why don't you write your own war engine, Lemming?

Because of the same reason where I can't post as often - I'm fricking buried at work.. :cry:
Ackbar
03-10-2003, 06:07
Why don't you write your own war engine, Lemming?

Because of the same reason where I can't post as often - I'm fricking buried at work.. :cry:

Working at the Diamond Mine got you dirty, eh?

Then you should help us find some with the time and PC savy to create it for us all.
Lemmingcus Meenicus
03-10-2003, 20:52
Working at the Diamond Mine got you dirty, eh?

Then you should help us find some with the time and PC savy to create it for us all.

LOL - no - not at the diamond mine. I've got three projects going on simulataneously at work and each of them exploded in their own special way.

Well, anctually two - one of them I haven't been able to get back to - building a PBX reporting app that catches calls in real time.

If I get a chance this weekend I'll start one.
Peng-Pau
03-10-2003, 23:11
[img]<image removed>

Ah good, now that that's settled! :wink: :lol:

I also did it with me attacking Melkor, and it said he would win.

However, if Melkor attacked me, it said I'd win.

Nifty toy. :)

Ah, so Automagfreek uses a Macintosh.

(I us a Think Pad btw, I just once saw screenshots of the same webpage on IBM Clones and Macs and IE and Netscape four pics total)

I <3 the Mac buttons...
Ackbar
04-10-2003, 05:31
Working at the Diamond Mine got you dirty, eh?

Then you should help us find some with the time and PC savy to create it for us all.

LOL - no - not at the diamond mine. I've got three projects going on simulataneously at work and each of them exploded in their own special way.

Well, anctually two - one of them I haven't been able to get back to - building a PBX reporting app that catches calls in real time.

If I get a chance this weekend I'll start one.

Feel free to TM me what sort of work you are into, if you ever care to do so, sounds like an interesting project tho I only understand the majority of words that you used.