inselkampf Build Queue

By PH Last update Feb 19, 2007 — Installed 2,036 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 16 posts, 9 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
Allen Hillman User

PH,

I have modified your script to work with the new Inselkampf .de Server 2 game.

Since I am anyway, I could take over development of the script.

Allen

 
PH Script's Author

I've decided that I'm not going to be developing this script anymore. I can't seem to find the time or motivation to work on it. The script works well the way it is but I have a some ideas that would make it a lot better if anyone would like to take over development. Just post here if you'd like to work on the script.

 
PH Script's Author

@Brian: The rate display is a good idea, I actually have something close to that in the script already for debugging. I'll try to get that into the next version of the script.

The formatdate() modification is also a good idea but I'd still like to have the time displayed. I think I'll change it to something like "Today@ 12:34pm". Also if you're pasting code, use the character codes instead of carats, '[ampersand]lt;' for less than or '[ampersand]gt;' for greater than. I didn't understand your formatdate method at first.

 
Brian Hartvi... Scriptwright

Modified the script a little to add dates to the building available time. Also added a new rate/difference from current to mines building. Also made formatDate show relative time (Today and Tomorrow) as I suck at dates :D var todaysDate = new Date(); var tomorrow = new Date(); tomorrow.setTime(todaysDate.getTime() + 24*60*60*1000); function showNextLevel(buildingCells){ if (buildingCells["stone quarry"]) { var stoneRate = pRates.stone[parseInt(level.stone) + 1]; var elem = buildingCells["stone quarry"].parentNode.childNodes[1]; elem.innerHTML = elem.innerHTML + "
Rate: " + stoneRate + " (+" + (stoneRate - pRates.stone[level.stone]) +")"; } if (buildingCells["gold mine"]) { var goldRate = pRates.gold[parseInt(level.gold) + 1]; var elem = buildingCells["gold mine"].parentNode.childNodes[1] elem.innerHTML = elem.innerHTML + "
Rate: " + goldRate + " (+" + (goldRate - pRates.gold[level.gold]) +")"; } if (buildingCells["lumber mill"]) { var woodRate = pRates.wood[parseInt(level.wood) + 1]; var elem = buildingCells["lumber mill"].parentNode.childNodes[1]; elem.innerHTML = elem.innerHTML + "
Rate: " + woodRate+ " (+" + (woodRate - pRates.wood[level.wood]) +")"; } } function formatDate(dateObj){ var day = dateObj.getDate(); var month = dateObj.getMonth(); if (day == todaysDate.getDate() && month == todaysDate.getMonth()) return "Today"; else if (day == tomorrow.getDate() && month == tomorrow.getMonth()) return "Tomorrow"; else { var months = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); month = months[month]; day = padString(day,2); return month + ". " + day; } }
 
surplus Scriptwright

Works and checked safe.

 
PH Script's Author

@peuh: I'll try to get that in there in the next update. I've been meaning to rewrite a lot of the script to handle other pages and be more efficient, but I've been lazy about it.

 
peuh-bugmenot Scriptwright

Another thing that would make this more useful. Can you make it so that it will tell you when your mines will overflow from the 'Show' page as well. Since it would be a useful thing to be able to see while you are in the process of building something.

 
PH Script's Author

@Rob: Thanks for the info. I've been getting a lot of information from http://sphere.sourceforge.net/flik/misc/inselka... which is where a lot of the information on editthis.info was taken from.

Although the build pathways are a good start, I've found that they aren't the best because (at least in my ocean) there's not really a threat of being taken over. So I focus on resources before defense.

 
Rob 3 User

The link for the previous post for the wiki:
Inselkampf Wiki

 
Rob 3 User

The link for the previous post for the wiki:
Inselkampf Wiki

 
Rob 3 User

Over at the wiki:
http://editthis.info/inselkampf
there is some more information about optimal build pathways

 
PH Script's Author

@archer: I don't have any plans yet to add anything to the ships or troops pages since I can't think of anything that those pages really need. Also I'm not able to build ships yet so I wouldn't know where to start on that page. I'd welcome any ideas though.

 
PH Script's Author

Curiously I just finally got one of my mines to level 20 and found the error. This clued me in to a whole load of other problems, i.e. how to handle multiple islands.

 
archer User

Love the script! Before, I would just have a countdown timer alert me as to when to do stuff but now, now more! yay!

Haven't gotten to where I'm able to produce ships / troops / etc, butdo you have plans of expanding this to provide useful info for those too?

 
jonwtaylor User

Hey great script! but you need a bit of error checking for when you reach level 20 for anything. For example if you upgrade your gold mine to 20 it will disappear from the main house build screen. therefor your script will error in the function findLevels(buildingCells)

I would recommend adding an if statement:
if (!buildingCells["gold mine"].innerHTML.match(levelRegExp)[1]){
};
to check if the node exists.
-jon

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel