SC4 Devotion Forum Archives

SimCity 4 Devotion Custom Content Showcase => Network Addon Mod (NAM) => Topic started by: simmaster07 on August 23, 2010, 10:46:05 AM

Title: Introducing the NAM Distribution Customizer
Post by: simmaster07 on August 23, 2010, 10:46:05 AM
Due to lack of available development time, this service is currently available WITHOUT WARRANTY OR GUARANTEE OF UPTIME. 10/3/10

Quote
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fsimm.ax.lt%2FNAM-DC%2FnamLogo.jpg&hash=62e1f9184f7508537bbf1d8e3a550a060e1d78a0) Distribution Customizer


The NAM Distribution Customizer, or NAM-DC, introduces a new way for Windows, Mac, and Linux users to all install the NAM while also reducing the amount of time it takes to also grab the Real Highway Mod, Network Widening Mod, and other NAM components at the same time.

In just a few simple steps, the NAM-DC script generates a ZIP that you can simply extract to your plugins folder, meaning Mac and Linux users can enjoy the same simplicity of a NAM installer without WINE or similar software, or needing FileJuicer.

Just go through three steps in the wizard (two if you don't want any components) and extract. Simple!

Currently Supported Version: NAM v29.
All components are up-to-date as of 9/11/10 @ 1:22 PM (UTC - 4)
[link] (http://simm.ax.lt/NAM-DC)

Due to the cost of bandwidth for running this on another host, I'm hosting this on my home PC. If the site is down, check back a few hours later.

(The NAM team will not provide official support for NAM-DC caused issues. Report NAM-DC bugs to simmaster07 or in this thread. Permission has generally been granted to publicly release the NAM-DC.)

Want to help port the NAM-DC to other languages? Know how to translate from English to Spanish? German? French? Japanese? See this post (http://sc4devotion.com/forums/index.php?topic=11561.msg344255#msg344255).

Screenshots
(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fi38.tinypic.com%2F2nkicsl.png&hash=546bc17b32b42f0911f3067018e727b2ab2f7037)

(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fi35.tinypic.com%2F2h4f5hz.png&hash=6c143df318f7e4cf89647b6a769c1c7831a7401f)

(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fi35.tinypic.com%2F14bsuxf.png&hash=087a0a1f24cba30124a0d58f966c0b4f3e918698)
Title: Re: Introducing the NAM Distribution Customizer
Post by: Nego on August 23, 2010, 11:32:42 AM
Oh, wow! This is AMAZING!!! I tested it out and it was AWESOME! :thumbsup: It was so easy to use, fast (as in faster than downloading and installing multiple NAM components one at a time), and vary simple. :) This is definitely how I'm downloading the NAM and its various components from now on! Great job &apls &apls &apls &apls &apls
Title: Re: Introducing the NAM Distribution Customizer
Post by: JayroBR on August 23, 2010, 12:17:06 PM
Wow! It's amazing!
Besides facilitating the lives of players.

Congratulations for the great work. ;)

Sorry for my bad english  :-[
Title: Re: Introducing the NAM Distribution Customizer
Post by: vitorhnn on August 23, 2010, 02:03:02 PM
Damn good job man!
Next time I have to install NAM I will use this!
Does this require a VPS if it where web hosted?
Title: Re: Introducing the NAM Distribution Customizer
Post by: j-dub on August 23, 2010, 03:05:00 PM
Nicely done. &apls
Title: Re: Introducing the NAM Distribution Customizer
Post by: Tarkus on August 23, 2010, 04:50:06 PM
simmaster, you've really done an absolutely brilliant job with this new tool! :thumbsup:  I'm really very impressed with it.

-Alex
Title: Re: Introducing the NAM Distribution Customizer
Post by: simmaster07 on August 23, 2010, 05:51:07 PM
I'm glad to hear that everyone likes the new tool so far and that there are no issues with it. Regarding the NAM-DC, I've introduced a new feature that saves your configuration in a database so when the next NAM/component release cycle comes around, your configuration can be restored easily with a unique ID.

Quote from: vitorhnn on August 23, 2010, 02:03:02 PM
Damn good job man!
Next time I have to install NAM I will use this!
Does this require a VPS if it where web hosted?

Not that it would necessarily require a VPS, but there would be plenty of bandwidth and memory, CPU, and I/O usage (45 MB max. of files being copied, compressed, and downloaded).
Title: Re: Introducing the NAM Distribution Customizer
Post by: Tarkus on August 23, 2010, 06:06:25 PM
Quote from: simmaster07 on August 23, 2010, 05:51:07 PM
Regarding the NAM-DC, I've introduced a new feature that saves your configuration in a database so when the next NAM/component release cycle comes around, your configuration can be restored easily with a unique ID.

Wow, it just gets better and better! :thumbsup:  Thank you for all your hard work on this!

-Alex
Title: Re: Introducing the NAM Distribution Customizer
Post by: simmaster07 on August 23, 2010, 06:29:33 PM
Quote from: Tarkus on August 23, 2010, 06:06:25 PM
Wow, it just gets better and better! :thumbsup:  Thank you for all your hard work on this!

-Alex

No problem! I enjoy working on the NAM-DC and my other projects because web programming is my main hobby. It could do with some more promotion on Simtropolis though. :-[
Title: Re: Introducing the NAM Distribution Customizer
Post by: CaptCity on August 23, 2010, 06:57:15 PM
Looks like you've done a great job on this that will be a wonderful convenience for many. I did try it out and have one question...

When selecting the STR option, I don't see where the files are installed, and I'm not seeing it in the game.
Title: Re: Introducing the NAM Distribution Customizer
Post by: simmaster07 on August 23, 2010, 08:13:39 PM
Quote from: CaptCity on August 23, 2010, 06:57:15 PM
Looks like you've done a great job on this that will be a wonderful convenience for many. I did try it out and have one question...

When selecting the STR option, I don't see where the files are installed, and I'm not seeing it in the game.


Fixed that bug, there was some name confusion between RAM and STR. :'(
Title: Re: Introducing the NAM Distribution Customizer
Post by: CaptCity on August 23, 2010, 08:52:12 PM
Quote from: simmaster07 on August 23, 2010, 08:13:39 PM
Fixed that bug, there was some name confusion between RAM and STR.

That did it. Thanks...
Title: Re: Introducing the NAM Distribution Customizer
Post by: vitorhnn on August 24, 2010, 09:34:15 AM
Yeah, but HostGator offers "Ilimited" (Very High Limit) hosting plans, you know...
EDIT: Oh, I almost forgot, it would be good a simultaneous dowload limit...
Title: Re: Introducing the NAM Distribution Customizer
Post by: simmaster07 on August 24, 2010, 06:16:08 PM
Quote from: vitorhnn on August 24, 2010, 09:34:15 AM
Yeah, but HostGator offers "Ilimited" (Very High Limit) hosting plans, you know...
EDIT: Oh, I almost forgot, it would be good a simultaneous dowload limit...

Well, as long as I'm on a (somewhat) dedicated server, simultaneous downloads don't really bother me. Besides, I'm only 13, so I don't have a credit card or PayPal to pay for those plans. I'm just working with what I have available.

On an unrelated note, thanks for the sticky. ;D
Title: Re: Introducing the NAM Distribution Customizer
Post by: Nego on August 24, 2010, 07:04:30 PM
Just wondering, but how are you using your PC as a web server? It sounds really cool and I'd like to try to do the same.

BTW, this is a very cool project you have here. Nice job!
Title: Re: Introducing the NAM Distribution Customizer
Post by: simmaster07 on August 24, 2010, 08:10:17 PM
Quote from: Nego on August 24, 2010, 07:04:30 PM
Just wondering, but how are you using your PC as a web server? It sounds really cool and I'd like to try to do the same.

BTW, this is a very cool project you have here. Nice job!

I had to set up port forwarding on my router, some Windows Firewall exceptions, and then install  Zend Server (http://zend.com/?Server) for the web site, database, etc. Anyways, glad to hear you like it.
Title: Re: Introducing the NAM Distribution Customizer
Post by: TEG24601 on August 25, 2010, 07:28:58 PM
It appears that the "RealHighwayMod_RampInterfacePieces.dat" file is missing from the RHW section of the package.

It also appears, that while I chose all of the roundabout plugins, none were included.

TEG
Title: Re: Introducing the NAM Distribution Customizer
Post by: Nego on August 25, 2010, 07:43:20 PM
Does the download include the TuLEP Patch file: 'zzz-TuLEP-SlipLanePathFix' ?
Title: Re: Introducing the NAM Distribution Customizer
Post by: simmaster07 on August 26, 2010, 12:34:51 PM
Quote from: TEG24601 on August 25, 2010, 07:28:58 PM
It appears that the "RealHighwayMod_RampInterfacePieces.dat" file is missing from the RHW section of the package.
Fixed

Quote
It also appears, that while I chose all of the roundabout plugins, none were included.
Fixed

Quote from: Nego on August 25, 2010, 07:43:20 PM
Does the download include the TuLEP Patch file: 'zzz-TuLEP-SlipLanePathFix' ?
Added.
Title: Re: Introducing the NAM Distribution Customizer
Post by: b22rian on September 07, 2010, 04:56:04 PM
Nelson..

i just want to say im very very impressed with this

and you did a masterful job . &apls &apls

Brian

Title: Re: Introducing the NAM Distribution Customizer
Post by: MAS71 on September 10, 2010, 12:48:06 AM
Hello Simmaster07 and ALL  :)
Wow !  :o  :o
It's NICE and useful and helpful, really good tool it is!!  &apls  &apls

How do you think that will for Multilingual Versions ?
I think that want to help sometihgn for that if it possible. ;) (For Japanese)

Thank you
-Mas'71


### Edited ###
I'm sorry Simmaster07 for my post at first....
I had big mistake with a quoting your name. Forgive my mistake in writing please. ()sad()
Title: Re: Introducing the NAM Distribution Customizer
Post by: mr x on September 11, 2010, 12:52:11 AM
Looks awesome  :D thanks
Title: Re: Introducing the NAM Distribution Customizer
Post by: simmaster07 on September 11, 2010, 10:20:50 AM
Quote from: MAS71 on September 10, 2010, 12:48:06 AM
Hello b22rian and ALL  :)
Wow !  :o  :o
It's NICE and useful and helpful, really good tool it is!!  &apls  &apls

How do you think that will for Multilingual Versions ?
I think that want to help sometihgn for that if it possible. ;) (For Japanese)

Thank you
-Mas'71

Well these are the strings that would need to be translated:

$distCustomizer = 'Distribution Customizer';
$checkAll = 'Check/Uncheck All';
$checkJS = 'Enable Javascript for "check/uncheck all" links to work.';
$disclaim = 'The Network Addon Mod and all components are property of the NAM Team. This service is not officially affiliated with the NAM Team in any way, shape, or form.';
$counter = 'NAM-DC installations generated and counting.';
$nextButton = 'Continue';
$preCont = 'Before continuing, make sure that all options are correct.';

$aboutSect = 'What is this?';
$aboutText = 'The NAM-DC provides a simple web interface that is compatible with most (if not, all) major browsers AND operating systems, including any Mac/Linux machine with an Internet connection.<br /><br />

By answering some questions and filling out a few forms, you can create a NAM bundle with the NWM, RHW, SAM, and more, and all you have to do to install it is just unzip it in your Plugins folder. No EXE installers to juice or tedious instructions to read. How cool is that?<br /><br />

To start, just fill out the form below and we will take you through the NAM-DC wizard.';

$versionText = 'Current NAM-DC Version:';
$warning = '<strong style="color:#c00000;">Warning:</strong> Remove the NAM and any NAM components before installing or upgrading a NAM-DC build.';

$componentsSect = 'Components';
$componentsText1 = 'Select the optional components you'd like to install:';
$componentsOpt1 = 'Real Highway Mod (RHW)';
$componentsOpt2 = 'Network Widening Mod (NWM)';
$componentsOpt3 = 'Street Addon Mod (SAM)';
$componentsOpt4 = 'Single Track Rail (STR)';
$componentsOpt5 = 'High Speed Rail Project (HSRP)';
$componentsText2 = 'The Network Addon Mod is installed by default as it is required by all of these.';

// Very large section here
$configSect = 'NAM Configuration';
$lhdQues = 'Do you have a left-hand or right-hand version of the game?';
$lhd = 'Left Hand Drive';
$rhd = 'Right Hand Drive';
$simSelect = 'Select a simulator.';
$simClassic = 'Classic - Ideal for rural areas/towns';
$simLow = 'Low - Ideal for small/medium-sized cities';
$simMedium = 'Medium - Ideal for medium/large cities';
$simHigh = 'High - For very large cities/large cities with no transit';
$simUltra = 'Ultra - For very large cities with lots of regional traffic';
$dataView = 'Enable the New Zones Data View? (Adds NAM networks and props to Zones Data View.)';
$namPlugins = 'Select the NAM plugins you want:';
$namBridge = 'Additional Bridges';
$namDiagStrt = 'Diagonal Streets';
$namDDecker = 'Double Decker (i.e. Tram over Road) / Underground Rail';
$namDHER = 'Double Height Elevated Rail';
$namDHM = 'Double Height Monorail';
$namFLUPS = 'Flexible Underpasses (FLUPS)';
$namGLR = 'Ground Light Rail (Tram)';
$namTiR = 'Tram-in-Road';
$namTiS = 'Tram-in-Street';
$namMenus = 'Menu Icon Plugins - Reorders/regroups some menus.';
$namHwyMenu = 'Custom Highway Menu - Groups some menu items';
$namMiscMenu = 'Custom Misc. Transport Menu - Reorders menu items';
$namRailMenu = 'Custom Rail Menu - Reorders menu items';
$namRailText = 'Select a rail texture style.';
$namRailSFBT = 'SFBT's Darker Textures contains darker zoom 1-4 textures to fix the color shift between Maxis and custom.';
$namRailDedgren = 'dedgren's Alternative Textures pack contains a new rail texture style closer to reality.';
$namRailMaxis = 'Keep the Maxis defaults (not recommended)';
$namViaduct = 'Select a rail viaduct style.';
$namGreyDuct = 'Grey Rocks';
$namBrownDuct = 'Brown Bricks';
$namRedDuct = 'Red Bricks';
$namOWR = 'Select one way arrow mods:';
$namROWR = 'Reduced One-way Arrows';
$namROWRRound = 'Reduced One-way Arrows at Roundabouts (implies One-Way Roundabouts)';
$namRound = 'Select roundabouts:';
$namRoundRoad = 'Road Roundabouts';
$namRoundStrt = 'Street Roundabouts';
$namRoundOWR = 'One-Way Road Roundabouts';
$namRoundAVE = 'Avenue Roundabouts and Wide Curves';
$namWideRad = 'Select wide radius curves:';
$namWRAVE = 'Wide Radius Avenue Curves';
$namWRRdStrt = 'Wide Radius Road/Street Curves';
$namWRRail = 'Wide Radius Rail Curves';
$namTurns = 'Select turning lanes:';
$namTurnAve = 'Avenue Turning Lanes';
$namTurnRoad = 'Road Turning Lanes';
$namTuLEP = 'Turn Lane Extension Pieces (TuLEP)';
$namCanAM = 'Select Canal Addon Mod style:';
$namCanAMGoober = 'SimGoober's Canals';
$namCanAMGrafx = 'Callagrafx's Canals';
$namAutomata = 'Select an automata controller:';
$namStandard = 'Standard: Adds regular functionality.';
$namStandard24 = 'Standard 24h: Modifies automata so their appear 24h a day';
$namRadical = 'Radical: Significantly adjusts the display of automata so they appear more.';
$namRadical24 = 'Radical 24h: Automata appear significantly more for most of the 24 hour sim day.';
// Insert sigh of relief

$componentConf = 'Component Configuration';
$cConfEnglish = 'English';
$cConfDutch = 'Dutch';
$cConfGerman = 'German';
$cConfLangPick = 'Select a language plugin:';

$cConfRHW = 'Rural Highway Mod';
$cConfRHWOWR = 'RHW One-Way Road Roundabout Reduction';
$cConfRHWLegacy = 'RHW v1.3 Legacy Support';

$cConfNWM = 'Network Widening Mod';
$cConfNWMOWR = 'Change the appearance of NWM One-Way Road arrows';

$cConfSAM = 'Street Addon Mod';
$cConfSAMText = 'Select texture variations:';
$cConfSAM1 = 'Asphalt Streets by Hableurg';
$cConfSAM2 = 'Brick Streets by JosefMayor and ScruffyDeluxe';
$cConfSAM3 = 'Cobblestone Streets by xannepan';
$cConfSAM4 = 'Dirt Streets by Pegasus';
$cConfSAM5 = 'Dirt Streets by Trolca';
$cConfSAM6 = 'Gravel Streets by Pegasus';
$cConfSAM7 = 'Herringbone Streets by ardecila';
$cConfSAM8 = 'Parking Lots by Pegasus';

$cConfSTR = 'Single Track Rail';

$cConfHSRP = 'High-Speed Rail Project';
$cConfHSRPBridge = 'Install HSRP Bridges';

$compilation = 'Compilation';
$compileText1 = 'The NAM-DC has successfully put together all the options you have selected. When you continue, our script will process all the files you will need into a ZIP archive.';
$compileText2 = 'The next step may take a while to complete. Be patient.';

$dload = 'Download';
$dloadText = 'Download now';
$size = 'Size:';
$time = 'It took {t} seconds to prepare this archive.';
$updating1 = 'Updating Your NAM:';
$updating2 = 'When upgrading your NAM/components, delete the folder fully and extract the new folder in its place.';
$sessID1 = 'Take note of your session ID.';
$sessID2 = 'Your unique session id is';
$sessID3 = 'When the next release of the NAM comes around, this will reuse your configuration to make upgrading easier.';

Translating the NAM-DC is an excellent idea, though with each new language, it would take a little while to deploy (usually no more than a day). And thanks again, everyone, for the kind words! :)
Title: Re: Introducing the NAM Distribution Customizer
Post by: MAS71 on September 12, 2010, 01:25:00 AM
@Simmaster07
Thank you for your understanding and up a source code. :)
I'll try to translate that and I'll up code which translated in this thread later. ;)

Thank you
-Mas'71
Title: Re: Introducing the NAM Distribution Customizer
Post by: jmyers2043 on September 12, 2010, 04:37:27 PM
Hey SimMaster

I used the distribution thing this morning. That's a nice script you've got running there. I didn't realize there were that many optional roads and pavement styles. The nice thing is that you did the research and I benefit.

It worked for me ... Download speed averaged around 87Kb/s

I'll test it again later to see if it really remembers my selections.


- Jim


Title: Re: Introducing the NAM Distribution Customizer
Post by: MAS71 on September 12, 2010, 10:14:55 PM
Hello again Simmaster07  :)

All of before,
I'm sorry to my not enough knowledge about JavaScript and more... :-[
I don't know which Character Code of text-file would cope with your script(Tool),
I attached a zip included .txt files that some c-code used.
a. Shift-Jis
b. EUC
c. UTF8
d. UTF8-N

and I know that some language can not display normaly without Character-Code in PC, too.
so Possibly you may not confirm whether they are right. $%Grinno$%
Let me know please when you test with them, and you need some help for that.  ;)


Thank you
-Mas'71


### Edited ###
Deleted attached zip file which had mistake.
Get a lates zip in THIS POST (http://sc4devotion.com/forums/index.php?topic=11561.msg344472#msg344472) please.
Title: Re: Introducing the NAM Distribution Customizer
Post by: ebina on September 13, 2010, 08:00:54 AM
@Masさん: 翻訳ファイルの99行目を訂正していただけますか?NWMの一方通行道路矢印プラグインはArrow Reduction Pluginではなく、矢印のテクスチャそのものを変更するファイルです。
@Mas san: Could you please correct the 99th line on your translated texts? NWM OWR Arrow Plugin is not Arrow Reduction Plugin, changes OWR arrow texture itself.
Title: Re: Introducing the NAM Distribution Customizer
Post by: MAS71 on September 13, 2010, 08:27:03 AM
@Ebina san
Oh...Thank you Ebina san, and I'm sorry to my mistake. :-[
I'll re-upload a zip later with corrected text fiels.
by the way, Would you translate them and upload text-file with more right Japanese by yourself ?
I believe that you can more better translate more than me. ;)
Thank you

@Ebina さん
すみません。ご指摘、ありがとうございます。 :-[
急いで修正して再アップさせて頂きます。
ところで、Ebinaさんが翻訳して頂いた方が、より確実なものになると確信しているのですが
Ebinaさんの方で日本語対応ファイルの作成とアップをして頂くことはできませんか? ;)
もし可能であれば是非願いします!



### Edited ###

@Simmaster07
I attached latest zip in this post. (Corrected miswriting with Ebina san did point out)
Download it again and delete old one please. ;)

Thank you
-Mas'71
Title: Re: Introducing the NAM Distribution Customizer
Post by: simmaster07 on September 18, 2010, 08:28:49 AM
Hello mas71.

Thanks for translating the strings, and I'd like to apologize for my unexpected absence. I'll be working on a Japanese version of the NAM-DC now and it should be ready by this evening (my local time).
Title: Re: Introducing the NAM Distribution Customizer
Post by: CasperVg on September 19, 2010, 03:47:23 AM
Hi simmaster,

I've just used your DC and have to say I'm astonished by the ease-of-use and the speed. Thanks a lot!

Casper
Title: Re: Introducing the NAM Distribution Customizer
Post by: Ruben on October 23, 2010, 03:26:34 PM
It doesn't work for me. It all goes well untill step 6, where it keeps loading untill Firefox aborts the mission (in other words stop loading). I notice though, that the address changes at step 6. I've checked the ping for the address on step 6 in Terminal, but it can't connect. I'd guess the server is down.

EDIT: The address is 173.52.242.101:8085.

EDIT: Checked ping again, now it managed to connect and tell me it was at 56 data bytes. Though it still won't load.

EDIT: I get a timeout after 30 seconds. Is it possible the capacity is to low, and that if I just wait it'll eventually show up? If so, how do I change how long it takes before I get a timeout?
Title: Re: Introducing the NAM Distribution Customizer
Post by: JoeST on January 13, 2011, 11:44:47 AM
You need a host? I have one, if you'd like it. PM/email me.

Joe