• Welcome to SC4 Devotion Forum Archives.

SC4Mapper : Trouble at launch

Started by Quesh, January 08, 2008, 07:50:47 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

carkid1998


I can't use I either and I'm desperat to us a map!!!!!! &cry2 :'( :'( ()sad() :(
Sendona... Coming soon!

wouanagaine

Maybe with a description of the problem or even better with the log file, I can help you. But so far I hardly see how I can

New Horizons Productions
Berethor ♦ beskhu3epnm ♦ blade2k5 ♦ dmscopio ♦ dedgren ♦ emilin ♦ Ennedi ♦ Heblem ♦ jplumbley
M4346 ♦ moganite ♦ Papab2000 ♦ Shadow Assassin ♦ Tarkus ♦ wouanagaine
Divide wouanagaine by zero and you will in fact get one...one bad-ass that is - Alek King of SC4

carkid1998


well I see the Nhp productions info then it dissapears however task manager says it is running ()what() ()what()
Sendona... Coming soon!

wouanagaine

find the sc4mapper.exe.log which should be in sc4mapper folder and copy/paste its content

New Horizons Productions
Berethor ♦ beskhu3epnm ♦ blade2k5 ♦ dmscopio ♦ dedgren ♦ emilin ♦ Ennedi ♦ Heblem ♦ jplumbley
M4346 ♦ moganite ♦ Papab2000 ♦ Shadow Assassin ♦ Tarkus ♦ wouanagaine
Divide wouanagaine by zero and you will in fact get one...one bad-ass that is - Alek King of SC4

carkid1998


ok:


k¬†Ic           @   sK  d  k  Z  d  k Z d  k Z d  k Z d  k Z d  k Z d  k Z d  k Z d  k Z d  k    Z    d  k
Z
d  k Z d  k Z d  k
Z
d  k Z d e _ d  k Z d  k Z d k Td a d Z d ,,  Z d ,,  Z d e f d ,,  ƒ  YZ d    ,,  Z d
e f d ,,  ƒ  YZ d e f d
,,  ƒ  YZ d e f d ,,  ƒ  YZ d ,,  Z d e f d ,,  ƒ  YZ d  S(   Ni   (   t   *i   iû  c         C   sô   t  |  d ƒ } t  |  d ƒ } t |  ƒ d j o t  |  d ƒ } n d } t | | | | | | ƒ } yZ t |  ƒ d j o) |  d | |  d | |  d | f Sn |  d | |  d | f SWn& t |  ƒ d j o d Sqð d Sn Xd  S(   Ni    i   i   i   (   i    i    i    (   i    i    (   t   floatt   p1t   dxt   dyt   lent   dzt   sqrtt   norm(   R   R   R   R   R   (    (    t"   D:\SC4\Code\SC4Mapper\rgnReader.pyt      Normalize   s     )c         C   sΠ t  d ƒ } t i |  | i | | t i    t i
| ƒ }
t i
|
t i ƒ } t i | | i d | i d d f ƒ } | i d | i d d f } t i
d | d | d f | i ƒ  ƒ } t i | ƒ }    xr t | d d ƒ D]\ }
xS t | d d ƒ D]= } |    i | d |
d | d d |
d d g d d    ƒqù WqÞ Wx\ | i D]Q } | i } | i  }
| | i! } |
| i# } |    i | |
| | g d d
ƒqHWt i
| i ƒ  t i ƒ } t i | | ƒ } | S(    Ni   iûÿÿÿiÿÿÿÿi    i   t   RGBi@   t   outlines   #777777s   #FFFFFF(   i   iûÿÿÿiÿÿÿÿ(%   R
   t   lightDirt   tools3Dt
   onePassColorst   bLightt   heightt   shapet
   waterLevelt   GradientReadert    paletteWatert    paletteLandt   rawRGBt   Numerict
   fromstringt   Int8t   rgbt   reshapet   st   Imaget   tostringt   imt      ImageDrawt   Drawt   drawt   xranget   yt   xt      rectanglet   regiont      allCitiest   cityt   xPost   yPost   xSizet   x1t   ySizet   y1(   R   R   R   R(   R
   R    R0   R*   R   R#   R   R.   R   R%   R&   (    (    R      t
   ComputeOneRGB/   s,     *))  ?
      

#t   SC4Entryc           B   sD   t  Z d ,,  Z e e d ,, Z d ,,  Z d ,,  Z d ,,  Z d ,,  Z    RS(   Nc         C   s  t  |  _ | |  _ t i d | d d d !ƒ d |  _ t i d | d d d !ƒ d |  _ |  i |  _ t i d | d d d !ƒ d |  _    | |  _ t i d    | d d d !ƒ d } t i d    | d d d !ƒ d } t i d    | d
d
d !ƒ d } h  d | <d | <d
| <|  _ d  S(   Nt   Hi
   i   i    t   li    i   i   t   Li   t   tt   gt   i(   t   Falset   selft
   compressedt   buffert   structt   unpackt   identt    fileLocationt   initialFileLocationt   filesizet   idxt   orderR6   R7   R8   t   TGI(   R:   R<   RC   R8   R7   R6   (    (    R      t   __init__G   s          $$ $   !!!c         C   sù   d  |  _ | oå | i |  i ƒ | i |  i ƒ |  _ | o\ t
|  i ƒ d j oB t i d |  i d d d !ƒ d } | t j o
t |  _ q" q˜ n |  i o3 | o    d GHn t i |  i d ƒ } | |  _ qõ | o    d GHn |  i |  _ n d  S(   Ni   R3   i   i   i    s   Compressed files   Uncompressed file(   t   NoneR:   t
   rawContentt      readWholet   sc4t   seekR@   t   readRB   t
   decompressR   R=   R>   t    compress_sigt   COMPRESSED_SIGt   TrueR;   t   QFSt   decodet
   uncompresst   content(   R:   RJ   RI   RM   RS   RN   (    (    R      t   ReadFileY   s"       $

    
    c         C   sE   | d |  i d j o- | d |  i d j o | d |  i d j S(   Ni    R6   i   R7   i   R8   (   t   tgiR:   RE   (   R:   RV   (    (    R      t    IsItThisTGIl   s    c         C   s"   t  i d |  i | | d !ƒ d S(   Nt   Ii   i    (   R=   R>   R:   RT   t   pos(   R:   RY   (    (    R      t   GetDWORDo   s    c         C   s"   t  i d |  i | | d !ƒ d S(   Nt   fi   i    (   R=   R>   R:   RT   RY   (   R:   RY   (    (    R      t   GetFloatr   s    c         C   s   |  i | | | !S(   N(   R:   RT   RY   t   length(   R:   RY   R]   (    (    R      t      GetStringu   s    (
   t   __name__t
   __module__RF   RP   R9   RU   RW   RZ   R\   R^   (    (    (    R      R2   F   s                c         C   sX   d } xK t | ƒ D]= } x4 t |  ƒ D]& } | t i d | | | f ƒ 7} q& Wq W| S(   Nt    R[   (      t   rR$   t   ySR%   t   xSR&   R=   t   packt   h(   Rd   Rc   Rf   R&   Rb   R%   (    (    R      t
   convheightmapx   s    

(t   SaveFilec           B   s,   t  Z d ,,  Z d ,,  Z d ,,  Z d ,,  Z RS(   Nc         C   s6   | |  _  t |  i  d ƒ |  _ |  i ƒ  |  i ƒ  d  S(   Nt   rb(   t   fileNameR:   t   openRJ   t
   ReadHeadert    ReadEntries(   R:   Rj   (    (    R      RF   €   s       
c         C   sæ  |  i i d ƒ |  _ |  i d d !d d |  i d d d !|  _ |  i } t i d | d d !ƒ d |  _ t i d | d d d    !ƒ d |  _ t i d | d
d
d    !ƒ d |  _ t i d | d d d    !ƒ d |  _    t i d | d d d    !ƒ d |  _
t i d | d d d    !ƒ d |  _ t i d
| d d d    !ƒ d |  _ t i d
| d d d    !ƒ d |  _
t i d | d    d    d    !ƒ d |  _ t i d | d d d    !ƒ d |  _ t i d | d d d    !ƒ d |  _ d  } d  |  _ d  S(   Ni`   i    i0   t    i    R4   i$   i(   i   i,   i4   i8   RX   i   i   i   i    (   R:   RJ   RL   t   headerR=   R>   t   indexRecordEntryCountt   indexRecordPositiont   indexRecordLengtht   holeRecordEntryCountt   holeRecordPositiont   holeRecordLengtht    dateCreatedt    dateUpdatedt   fileVersionMajort   fileVersionMinort   indexRecordTypeRG   t
   regionView(   R:   Ro   (    (    R      Rl   †   s     -    $$$$$$$$$$c         C   sØ   g  |  _ |  i i |  i ƒ |  i i |  i ƒ } x" t |  i    ƒ D], } t | | d | d d !| ƒ } | i
d ƒ p | i
d    ƒ o | i |  i t t ƒ n | i |  i ƒ |  i i | ƒ qA W|  i i ƒ  d  S(
   Ni   l   ôoºS l   %S i   l   Û~ l   á~ i    (   l   ôoºS l   %S i   (   l   Û~ l   á~ i    (   R:   t   entriesRJ   RK   Rq   RL   Rr   Ro   R$   Rp   RC   R2   t   entryRW   RU   RP   t   appendt   close(   R:   RC   Ro   R}   (    (    R      Rm   ›   s        " c         C   sd  t  i d ƒ | |  _ |  i i d } |  i i d } t i t    i
d d ƒ t | | |  i ƒ ƒ }
t    i
d t
|
ƒ ƒ |
}
d |  _ t t  i  ƒ  ƒ t d |  _ t d 7a |  i d d    !t    i
d
|  i ƒ |  i d    d d !t    i
d |  i ƒ |  i d d d !|  _ t |  i d
ƒ |  _ x8 |  i D]- } | i d  j o | i |  i t ƒ q,q,W|  i i ƒ  x† y t | d ƒ |  _ PWqmt j
o[ t i  d  d | d t i! t i" Bƒ } | i$ ƒ  } | i& ƒ  | t i' j o t( SqîqmXqmW|  i i) |  i ƒ |  i i* |  i ƒ |  i i+ |  i ƒ |  i |  i, } xÀ|  i D]µ} | | _. | i/ d d !t    i
d | i. ƒ | i/ d d }
| i1 d  ƒ om | i/ d d !t    i
d | i. ƒ t    i
d t
|
ƒ ƒ | i/ d d }
|
| _ d | _2 t
|
ƒ | _3 n | i1 d! ƒ o|  i } | i5 d d !t    i
d
| ƒ t    i
d
| ƒ | i5 d d !t    i
d
| ƒ | i5 d d | _5 | i }    t i | i5 ƒ }    t    i
d t
|    ƒ ƒ |    }    | i/ d d !t    i
d | i. ƒ t    i
d t
|    ƒ ƒ | i/ d d }
|    | _ d | _2 t
|    ƒ | _3 n | i1 d" ƒ oÎ t9 i: i; | ƒ d } d | d G| GHt | d d
ƒ } | i> ƒ  } | i ƒ  t9 i@ | d ƒ | i/ d d !t    i
d
| i. ƒ t    i
d
t
| ƒ ƒ | i/ d d }
| | _ d | _2 t
| ƒ | _3 n | i1 d# ƒ oÎ t9 i: i; | ƒ d } d | d G| GHt | d d
ƒ } | i> ƒ  } | i ƒ  t9 i@ | d ƒ | i/ d d !t    i
d
| i. ƒ t    i
d
t
| ƒ ƒ | i/ d d }
| | _ d | _2 t
| ƒ | _3 n |  i i) |
ƒ | | i3 7} qFWxQ |  i D]F } |  i i) | i ƒ | i1 d$ ƒ p | i1 d% ƒ o q   d  | _ q   W|  i i ƒ  t S(&   Nf0.10000000000000001i    i   R3   i   R4   i`   iÿÿ  i   RX   i   i(   Ri   t   wbsE   file %s seems to be ReadOnly
Do you want to skip?(Yes)
Or retry ?(No)t   Warningi    l   ôoºS l   %S i   l   Û~ l   á~ i'   l   ¹I i»,$Js   updating region view s   .PNG for savegame s   .PNGs   updating region view overlay s   _alpha.PNG for savegame s
   _alpha.PNG(   l   ôoºS l   %S i   (   l   Û~ l   á~ i    (   l   ¹I i»,$Ji    (   l   ¹I i»,$Ji   (   l   ôoºS l   %S i   (   l   Û~ l   á~ i    (A   t   timet   sleept      heightMapR:   R   R-   R/   RQ   t   encodeR=   Re   Rg   t   newDataR   Rq   t   intt   generic_saveValueRw   Ro   Rk   Rj   RJ   R|   R}   RH   RG   RU   RP   R   t   saveNamet   IOErrort   wxt
   MessageDialogt   YES_NOt
   ICON_QUESTIONt   dlgt      ShowModalt   resultt   Destroyt   ID_YESR9   t   writet   truncateRK   Rr   RY   R@   R<   t      newbufferRW   R;   RB   t   vRT   t   cityXPost   cityYPost    newDataCityt   ost   patht   splitextt   nt   pngRL   t   pngDatat   unlink(   R:   R˜   R™   R,,   R‰   R/   RY   R'   R   Rš   R–   R—   R    R†   RŸ   Rž   R-   R}   (    (    R      t   Save¨   s¦     
   .   
]

  & 

   2H         `
H       
H       
H      
 

(   R_   R`   RF   Rl   Rm   R¢   (    (    (    R      Rh      s            
t   SC4Filec           B   sG   t  Z d ,,  Z d ,,  Z d ,,  Z d ,,  Z d ,,  Z d ,,  Z d ,,  Z RS(   Nc         C   s"   | |  _  t |  i  d ƒ |  _ d  S(   NRi   (   Rj   R:   Rk   RJ   (   R:   Rj   (    (    R      RF      s       c         C   s   | |  i j o
| |  i j S(   N(   R&   R:   R˜   R%   R™   (   R:   R&   R%   (    (    R      t   AtPos  s    c         C   s   |  i S(   N(   R:   t   mayorMod(   R:   (    (    R      t
   InMayorMod  s    c         C   s  |  i i d ƒ |  _ |  i d d !d d |  i d d d !|  _ |  i } t i d | d d !ƒ d |  _ t i d | d d d    !ƒ d |  _ t i d | d
d
d    !ƒ d |  _ t i d | d d d    !ƒ d |  _    t i d | d d d    !ƒ d |  _
t i d | d d d    !ƒ d |  _ t i d | d
d
d    !ƒ d |  _ t i d | d d d    !ƒ d |  _
t i d | d    d    d    !ƒ d |  _ t i d | d d d    !ƒ d |  _ t i d | d d d    !ƒ d |  _ d  } |  i G|  i G|  i    G|  i
G|  i GHd  S(   Ni`   i    i0   Rn   i    RX   i$   i(   i   i,   i4   i8   i   i   i   i    (   R:   RJ   RL   Ro   R=   R>   Rp   Rq   Rr   Rs   Rt   Ru   Rv   Rw   Rx   Ry   Rz   RG   Rj   (   R:   Ro   (    (    R      Rl     s     -    $$$$$$$$$$c            C   sw  g  |  _ |  i i |  i ƒ |  i i |  i ƒ } xt |  i    ƒ D]} t | | d | d d !| ƒ } | i
d" ƒ p | i
d# ƒ o | i |  i t t ƒ n | i
d$ ƒ o d GH| |  _ n | i
d% ƒ ozd    G| i GHd
Gt | i d ƒ ƒ GH| i d ƒ } | i d ƒ |  _ | i d ƒ |  _ | i d
ƒ |  _ | i d ƒ |  _ d G|  i GHd G|  i GHd G|  i GHd G|  i GHd } | d j o
d } n | d j o
d } n | d j o
d } n t i d | i | d ƒ d |  _ | i | ƒ } d G| GH| d j  o% | i | d | ƒ |  _  |  i  GHqOd G| GHd |  _  qA qA Wd GHd d GH|  i d d |  _! |  i d d |  _" |  i d |  _# |  i d |  _$ t% i& |  i! |  i" f t% i' ƒ |  _( xc t |  i! ƒ D]R } xI t |  i" ƒ D]8 } |  i i+ d  | | |  i" d ƒ |  i( | | f <qóWqÝWt, i- d! |  i" |  i! f |  i( i. ƒ  ƒ |  _/ d  } |  i i1 ƒ  d  S(&   Ni   l   ôoºS l   %S i   l   Û~ l   á~ i    s   This was the terrains   This was the city infos   version i   i   i    i   s   city tile X = s   city tile Y = s   city size X = s   city size Y = i@   i
i
i?   i     i;   t   Bs   name city lengthid   t   xxxxxxxxxxxxxxxxxxxxoldvs
   weird names   finished reading the sc4s   --i   t   F(   l   ôoºS l   %S i   (   l   Û~ l   á~ i    (   l   ôoºS l   %S i   (   l   Û~ l   á~ i    (2   R:   R|   RJ   RK   Rq   RL   Rr   Ro   R$   Rp   RC   R2   R}   RW   RU   RP   t   heightMapEntryR;   t   hexRZ   t   versionR˜   R™   t      cityXSizet      cityYSizet      offsetLenR=   R>   RT   R¥   t   sizeNameR^   t   cityNameR/   R-   R+   R,   R   t   zerost   Float32R,,   R%   R&   R\   R   R   R   R    RG   R   (      R:   RC   R¯   Ro   R¬   R&   R%   R}   R°   (    (    R      Rm   .  sj        " 
     





$   
       $  :-c            C   s   t  i d } t i | ƒ |  i d j o
d } n |  i d j o
d } n |  i d j o
d } n |  i | | ƒ t | ƒ } |  i
} d G|  i
Gd    GH| i |  i |  i |  i | ƒ } | S(
   Ni    i   s   City - Small.sc4i   s   City - Medium.sc4i   s   City - Large.sc4s    will replaces   with a new blank city(   t   sysRœ   t   mainPathR›   t   chdirR:   R­   t   namet   BuildThumbnailt   colorR   Rh   t   savedRj   R¢   R˜   R™   R,,   t   ret(      R:   t   folderR¹   R   R·   Rº   R»   Rµ   Rj   (    (    R      R¢   g  s    




    !c          C   s  t  i i |  i ƒ d } t i | |  i    i
|  i    i ƒ  | i ƒ  ƒ \ } } } } } | d 7} t | ƒ d }
t i d d | |
  ƒ }    | G| G| G| GH|    i | | | | g ƒ }    |    i | d ƒ t i d d    | |
ƒ }    |    i | | | | g ƒ }    |    i | d ƒ d  S(
   Ni    i   R    i  i¬  s   .PNGs
   _alpha.PNG(   i  i¬  (   i  i¬  (   R›   Rœ   R   R:   Rj   Rž   R   t
   generateImageR   R,,   R   R   t   colorst   minxt   minyt   maxxt   maxyRb   R   t   offsetR   R   R    t   cropt   save(    R:   R¾   R   RÁ   R   Rž   R¿   RÀ   Rb   R    Rà  (    (    R      R¸   |  s    <
(      R_   R`   RF   R¤   R¦   Rl   Rm   R¢   R¸   (    (    (    R      R£      s                  9   t      CityProxyc           B   sP   t  Z d ,,  Z d ,,  Z d ,,  Z d ,,  Z d ,,  Z d ,,  Z d ,,  Z d ,,  Z    RS(      Nc         C   s  | |  _ | |  _ | |  _ | |  _ t    |  _
t    |  _ t    |  _ d |  _
|  i d d |  _ |  i d d |  _ |  i d |  _  |  i d |  _ t i |  i |  i f t i ƒ |  _ |  i t i | d ƒ i t i ƒ 7_ t i d |  i |  i f |  i i ƒ  ƒ |  _ d  |  _ d  S(   Ns   Not created yeti@   i   i   R©   (   R+   R:   R˜   R,   R™   R-   R­   R/   R®   R9   t   haveTreeR¥   t      protectedR±   R   R²   R³   R,,   t   arrayR   t   astypeR   R   R   R    RG   Rj   (   R:   R   R+   R,   R-   R/   (    (    R      RF   Œ  s                             $(-c         C   s   | |  i j o
| |  i j S(   N(   R&   R:   R˜   R%   R™   (   R:   R&   R%   (    (    R      R¤   Ÿ  s    c         C   s   d  S(   N(    (   R:   t   b(    (    R      t      Protected¢  s    c         C   s   t  S(   N(   R9   (   R:   (    (    R      t    IsProtected¥  s    c         C   s   t  S(   N(   R9   (   R:   (    (    R      t      HaveTrees¨  s    c         C   s   t  S(   N(   R9   (   R:   (    (    R      R¦   «  s    c         C   sÇ   t  i d } t i | ƒ |  i d j o
d } n |  i d j o
d } n |  i d j o
d } n t | ƒ } | d d    |  i |  i f |  _
|  i | | ƒ | i |  i |  i |  i |  i
ƒ S(
   Ni    i   s   City - Small.sc4i   s   City - Medium.sc4i   s   City - Large.sc4t   /s   City - New city(%03d-%03d).sc4(   R´   Rœ   Rµ   R›   R¶   R:   R­   R·   Rh   Rº   R¼   R˜   R™   Rj   R¸   R¹   R   R¢   R,,   (   R:   R¼   R¹   R   R·   Rº   Rµ   (    (    R      R¢   ®  s    




 !c          C   s  t  i i |  i ƒ d } t i | |  i    i
|  i    i ƒ  | i ƒ  ƒ \ } } } } } | d 7} t | ƒ d }
t i d d | |
  ƒ }    | G| G| G| GH|    i | | | | g ƒ }    |    i | d ƒ t i d d    | |
ƒ }    |    i | | | | g ƒ }    |    i | d ƒ |    i | d ƒ d  S(
   Ni    i   R    i  i¬  s   .PNGs
   _alpha.PNG(   i  i¬  (   i  i¬  (   R›   Rœ   R   R:   Rj   Rž   R   R½   R   R,,   R   R   R¾   R¿   RÀ   RÁ   R   Rb   R   Rà  R   R   R    RÄ   RÅ   (    R:   R¾   R   RÁ   R   Rž   R¿   RÀ   Rb   R    Rà  (    (    R      R¸   À  s    <
(
   R_   R`   RF   R¤   RÌ   RÍ   RΠ  R¦   R¢   R¸   (    (    (    R      RÆ   ‹  s                        c            s4  t  i ˆ  i t  i ƒ ‰ d ,,  } d ,,  ‰ d ,,  ‰ ‡ ‡ ‡  d †  } ‡ ‡ ‡  d †  } d } g  }    d } d } g  }
g  } x¥t ˆ  i d ƒ D]} x‡t ˆ  i d ƒ D]r} ˆ | | f d j oUˆ  i | | f ƒ }
ˆ |
ƒ oz y. | | | ƒ |    i | | f ƒ | d 7} Wqbt j
o | G| Gd GH,  qbt j
o | G| Gd GH,  qbXn | |
ƒ o! |
i | | f ƒ | d 7} n ˆ |
ƒ oz y. | | | ƒ | i | | f ƒ | d 7} Wqt j
o | G| Gd    GH,  qt j
o | G| Gd    GH,  qXqq© q© Wq Wd
G| GHd G| GHd G| GHt i ˆ  i ˆ  i ƒ } t i | ƒ } xU |
D]M } d( } | d | d } | i# | | d | d f g d | | d ƒqlWx] | D]U } d) } | d | d } | i# | | d d | d d f g d | | d ƒqÄWx] |    D]U } d* } | d | d } | i# | | d d& | d d& f g d | | d' ƒq$Wg  } |
D]' } | t& | | d | d d d ƒ qˆ~ g  } | D]' } | t& | | d | d d d ƒ qÀ~ g  } |    D]' } | t& | | d | d d d ƒ qù~ } | | f S(+   Nc         C   sB   |  \ } } } | | j o" | | j o | d j o t Sn t S(   Niú   (   t   valueRb   R7   RË   RP   R9   (   RР  RË   R7   Rb   (    (    R      t   RedishÓ  s    'c         C   sB   |  \ } } } | | j o" | | j o | d j o t Sn t S(   Niú   (   RР  Rb   R7   RË   RP   R9   (   RР  RË   R7   Rb   (    (    R      t   GreenishØ  s    'c         C   sB   |  \ } } } | | j o" | | j o | d j o t Sn t S(   Niú   (   RР  Rb   R7   RË   RP   R9   (   RР  RË   R7   Rb   (    (    R      t   BlueishÝ  s    'c            s   ˆ i |  d | f ƒ ˆ i |  | d f ƒ ˆ i |  d | d f ƒ f } x | D] } ˆ | ƒ p qS qS Wd ˆ  |  | f <d ˆ  |  d | f <d ˆ  |  | d f <d ˆ  |  d | d f <d  S(   Ni   (   t   configt   getpixelR&   R%   t   rgbsR   RÒ   t   verified(   R&   R%   RÖ   R   (   R×   RÒ   RÔ   (    R      t    VerifyMediumâ  s    L 
c            sá  ˆ i |  d | f ƒ ˆ i |  d | f ƒ ˆ i |  d | f ƒ ˆ i |  | d f ƒ ˆ i |  d | d f ƒ ˆ i |  d | d f ƒ ˆ i |  d | d f ƒ ˆ i |  | d f ƒ ˆ i |  d | d f ƒ ˆ i |  d | d f ƒ ˆ i |  d | d f ƒ ˆ i |  | d f ƒ ˆ i |  d | d f ƒ ˆ i |  d | d f ƒ ˆ i |  d | d f ƒ f } x  | D] } ˆ | ƒ o n q{WxC t d ƒ D]5 } x, t d ƒ D] } d ˆ  |  | | | f <q·Wq¤Wd  S(   Ni   i   i   i   (    RÔ   RÕ   R&   R%   RÖ   R   RÓ   R$   t   jR8   R×   (   R&   R%   RÖ   R8   RÙ   R   (   R×   RÓ   RÔ   (    R      t    VerifyLargeë  s    ÿ u 

i    i   s   not blues      not greens
   big cities = s   medium cities = s   small cities = s   #FF7777s   #FF0000t   filli   s   #00FF00s   #99FF00s   #00FF99s   #55FF55i   s   #0000FFs   #4000FFs   #8000FFs   #C000FFs   #F000FFs   #4040FFs   #4080FFs   #40C0FFs   #40F0FFs   #8040FFs   #8080FFs   #80C0FFs   #80F0FFs   #C040FFs   #C080FFs   #C0C0FFi   i   (   s   #FF7777s   #FF0000(   s   #00FF00s   #99FF00s   #00FF99s   #55FF55(   s   #0000FFs   #4000FFs   #8000FFs   #C000FFs   #F000FFs   #4040FFs   #4080FFs   #40C0FFs   #40F0FFs   #8040FFs   #8080FFs   #80C0FFs   #80F0FFs   #C040FFs   #C080FFs   #C0C0FF()   R   R²   RÔ   t   sizeR   R×   RÑ   RÒ   RÓ   RØ   RÚ   t   bigt   bigst   smallt   mediumt   smallst   mediumsR$   R%   R&   RÕ   R   R~   t
   IndexErrort   AssertionErrorR   t   newt   modet   outR!   R"   R#   t   ct   redsR¹   R'   R¾   t   _[1]RÆ   R   t   cities(   RÔ   R   Ré   RØ   R¹   R#   R¾   Rç   R×   RÞ   R   RÑ   RÓ   Rá   Rà   RÝ   Rß   RÒ   Rë   RÚ   Rè   Rê   R%   R&   Râ   (    (   RÔ   RÓ   R×   RÒ   R      t
   WorkTheconfigР s,                
  



 




          3 ; ;­t      SC4Regionc           B   s/   t  Z d  d ,, Z d ,,  Z d ,,  Z d ,,  Z RS(   Nc         C   s$  t  i d ƒ | |  _ t  i d ƒ | d  j    o d  |  _ g  }    | |  _ nˆ | |  _ t i    | ƒ } g  } | D]. } t
i i | ƒ d d j o | | qo qo ~ }    y t i | d ƒ |  _ Wn d  |  _ n Xg  |  _ |  i oF |  i i d ƒ |  _ t |  i | ƒ \ |  _ |  _ d G|  i i GHn xu|    D]m}
| d  j    o | i d d d |
ƒ n t t
i i | |
ƒ ƒ } | i ƒ  | i ƒ  xü t |  i ƒ D]ë \ } }
|
i! | i" | i# ƒ oÆ |
i$ t% j oo |
i" | i" j o\ |
i# | i# j oI |
i& | i& j o6 |
i' | i' j o# |  i |  |  i | d |  _ qŒt( i) d  d    d
t( i* t( i+ Bƒ } | i- ƒ  | i. ƒ  d  |  _ d  Sq¡q¡W|  i i/ | ƒ q3Wd } d } g  } g  } g  } xî |  i D]ã }
|
i& d j o | i/ |
i" |
i# f ƒ n |
i& d
j o | i/ |
i" |
i# f ƒ n |
i& d j o | i/ |
i" |
i# f ƒ n |
i" |
i& | j o |
i" |
i& } n |
i# |
i' | j o |
i# |
i' } qÌqÌWt i5 d | | f ƒ } t6 i7 | ƒ } xU | D]M } d' } | d | d } | i< | | d | d f g d | | d
ƒqáWx] | D]U } d( } | d | d } | i< | | d d | d d f g d | | d ƒq9Wx] | D]U } d) } | d | d } | i< | | d d% | d d% f g d | | d& ƒq™W| |  _ n | d  j    o | i d d ƒ n d  S(*   Ns   basicColors.inii   s   .sc4s    /config.bmpR    s    CONFIG sizes$   Please wait while loading the regions      
Reading sV   It seems that the config.bmp does not match the savegames present in the region foldert   errori    i   i   s   #FF7777s   #FF0000RÛ   s   #00FF00s   #99FF00s   #00FF99s   #55FF55s   #0000FFs   #4000FFs   #8000FFs   #C000FFs   #0040FFs   #4040FFs   #8040FFs   #C040FFs   #0080FFs   #4080FFs   #8080FFs   #C080FFs   #00C0FFs   #40C0FFs   #80C0FFs   #C0C0FFi   i   (   s   #FF7777s   #FF0000(   s   #00FF00s   #99FF00s   #00FF99s   #55FF55(   s   #0000FFs   #4000FFs   #8000FFs   #C000FFs   #0040FFs   #4040FFs   #8040FFs   #C040FFs   #0080FFs   #4080FFs   #8080FFs   #C080FFs   #00C0FFs   #40C0FFs   #80C0FFs   #C0C0FF(>   R   t   InitR   R:   RÔ   RG   R¼   t   allCityFileNamest   dircachet   listdirt   allfilesRê   R&   R›   Rœ   R   R   Rk   R)   t   convertRì   RÜ   RÅ   R   t   UpdateR£   t   joinRJ   Rl   Rm   t      enumerateR8   R*   R¤   R˜   R™   t      __class__RÆ   R­   R®   R‹   RŒ   t   OKt
   ICON_ERRORt   dlg1R   R'   R~   t   sizeXt   sizeYRÞ   Rá   Râ   Rå   R!   R"   R#   Rè   Ré   R¹   R'   R¾   (   R:   R¼   R   R   RÔ   Rû   Ré   R¹   Rá   Rð   R*   Ró   RÞ   RÅ   Rü   Rý   RJ   Rè   R8   R¾   R#   Rê   R&   Râ   (    (    R      RF   5  s–    
   

   
   B
   
 


 \#"

     
 3 ; ;

c         C   s#   t  |  i ƒ d j p
|  i d  j S(   Ni    (   R   R:   R)   RÔ   RG   (   R:   (    (    R      t   IsValid,,  s    c          C   sÿ  d GHt  i d |  i i d |  i i d f |  i i ƒ  ƒ }    t } xµt    |  i
ƒ D]¤\ } } | i | d d | i ƒ |    i | i d | i d | i d | i | i d | i f ƒ | _ | i i ƒ  } t i | i i ƒ  t i ƒ | _ t i | i | i | i f ƒ | _ d  | _ | i } | i }
| | i } |
| i } | G|
G| G| GH|  i! i GH|  i! |
| ... | | ... d  d  ... f } | i# |  i$ | |  i% ƒ pF t i | t i ƒ | _ t i | i | i | i f ƒ | _ t& } qS d  } qS W| S(   Nt   savingR©   i   i    s#   Please wait while saving the regions   
saving i@   ('   R   R   R:   R   R   R   R    RP   Rº   R÷   R)   R8   R*   R   Rõ   R±   RÄ   R˜   R™   R-   R/   R,,   t   backupR   R³   R   RG   R+   R.   R,   R0   t   x2t   y2R¾   Rè   R¢   R¼   R   R9   (    R:   R   R*   R  R   R8   Rº   Rè   R  R    R0   R.   (    (    R      R¢   ‡  s0    8 H!$         

 ($

c          C   s;  d d g } |  i o, |  i i d | d <|  i i d | d <n xo |  i D]d } | i | i }
| i    | i
}    | d |
j  o |
| d <n | d |    j  o |    | d <qL qL Wg  } | D] } | | d d q¿ ~ |  _  t i d |  i  ƒ } xA |  i D]6 } | i | i | i d | i    d f ƒ d  | _ qÿ W| i d d ƒ | i ƒ  } d  } t i | t i ƒ |  _ d  } t i |  i |  i  d |  i  d f ƒ |  _ | d  j    o | i d d ƒ n | d  j    o | i d    d
ƒ n t t |  i |  i |  ƒ |  _ | d  j    o | i d d ƒ n d  } d  } d
GHd  S(   Ni    i   i@   R©   i   s6   Please wait while loading the region
Building texturesi   s5   Please wait while loading the region
Building shadowsi   s4   Please wait while loading the region
Building colorsi   s'   Please wait while loading the region
oks    region read("   t   imgSizeR:   RÔ   RÜ   R)   R*   R˜   R­   R&   R™   R®   R%   Rê   t   aR   Rå   R    t   pasteRG   R   Rõ   R   t      rawHeightR   R   R³   R   R   R1   R9   R   R¾   t   normst   shadow(    R:   R   R  R*   R  Rê   R  R    R  R%   R&   R  (    (    R      t   show£  sF     

,
'
 ,


(   R_   R`   RG   RF   Rþ   R¢   R     (    (    (    R      Rí   4  s    O      (   R‹   R´   R=   R,   RQ   R   R   R   t    ImageFilterR!   t   PngImagePlugint   JpegImagePlugint   BmpImagePluginR   t   matht    _initializedRñ   t   os.pathR›   Rˆ   RO   R
   R1   t   objectR2   Rg   Rh   R£   RÆ   Rì   Rí   (   R
   R   R2   Rì   R   Rh   R1   R=   R
  RO   R
  R!   R£   R  Rí   RQ   R´   R‹   R   R   R   R   Rñ   Rg   R,   R›   RÆ   (    (    R      t   ?   s:                                                               2   Œ€E   d
Sendona... Coming soon!

wouanagaine

I think you copy paste the exe and not the log :)

New Horizons Productions
Berethor ♦ beskhu3epnm ♦ blade2k5 ♦ dmscopio ♦ dedgren ♦ emilin ♦ Ennedi ♦ Heblem ♦ jplumbley
M4346 ♦ moganite ♦ Papab2000 ♦ Shadow Assassin ♦ Tarkus ♦ wouanagaine
Divide wouanagaine by zero and you will in fact get one...one bad-ass that is - Alek King of SC4

evertonforever1

Im having troubles with the Mapper!

I go to save my Region (NHPBrunswickBathMaine)  and it saves. Then i Quit and there is nothing?  WHere do i find the region once it is saved?

I am getting this error message when i quit>  See The Log File C: Program Files\SC4Mapper\SC4Mapper.exe for details

Then i do that and there is this :
Traceback (most recent call last):
  File "SC4MapApp.pyo", line 862, in SaveRgn
OSError: [Errno 2] No such file or directory

im running XP

wouanagaine

Make sure you have a My Documents\simcity 4\Regions folder and that you don't put fancy character in the region name

New Horizons Productions
Berethor ♦ beskhu3epnm ♦ blade2k5 ♦ dmscopio ♦ dedgren ♦ emilin ♦ Ennedi ♦ Heblem ♦ jplumbley
M4346 ♦ moganite ♦ Papab2000 ♦ Shadow Assassin ♦ Tarkus ♦ wouanagaine
Divide wouanagaine by zero and you will in fact get one...one bad-ass that is - Alek King of SC4

evertonforever1

Would i perhaps be Under My documents/regions/download?

cause otherwise there is nothing else in that folder besides the stock maxis regions... i save my region as Weymouth in the SC4Mappper but nothing of the sort apears in the folder or when i start up the game.

wouanagaine

Can you try with another region just to check please ?

New Horizons Productions
Berethor ♦ beskhu3epnm ♦ blade2k5 ♦ dmscopio ♦ dedgren ♦ emilin ♦ Ennedi ♦ Heblem ♦ jplumbley
M4346 ♦ moganite ♦ Papab2000 ♦ Shadow Assassin ♦ Tarkus ♦ wouanagaine
Divide wouanagaine by zero and you will in fact get one...one bad-ass that is - Alek King of SC4

jayden08

Well, to start off, i am using Windows 7. But so far everything that works with windows Vista works with it.

Though i am aware that this is not compatible fully with vista.

This is in the SC4Mapper.exe logfile:
Traceback (most recent call last):
  File "SC4MapApp.pyo", line 1006, in OnClose
  File "SC4MapApp.pyo", line 1009, in ShowMain
  File "SC4MapApp.pyo", line 278, in __init__
UnicodeDecodeError: 'unicodeescape' codec can't decode bytes in position 2-4: truncated \UXXXXXXXX escape

Have NO idea what it means.

And the whole "move your documents folder" thing is not working for me.

I open it, the splash screen comes up. and then nothing, though it is in the Process's when i open task manager.
I get the same thing with SC4Terraformer aswell.

Any help would be greatly apreciated.

jayden08

Never mind, i got SC4 Terraformer working.

Russellhmfc

Im sorry but can someone help me, i cannot download sc4 mapper as i cannot find the download button on that page? what am i doing wrong?

BarbyW

Have you registered separately for the LEX? If not, click on the LEX button at the top of the page and register there. Once your account is activated you will see the Download button.
Inside every old person is a young person wondering what happened. TP



Barbypedia: More alive than the original

delta9

FOR VISTA USERS:

Some tips on moving Documents out of \Users:

I tried simply creating a folder named "Documents" in the root directory (i.e. C:\Documents) but it does not work, there's some kind of flag that tells the system whether or not it's an "authentic" Documents folder.  However...

YOU DO NOT HAVE TO MOVE ALL OF YOUR DOCUMENTS.

It might make things easier for you to do so in the long run, because you will have two different Documents folders under your User folder, but it's not too hard to remember which is which.  All you have to move is your SimCity 4 folder from the old Documents folder to the new one.  Honestly you may not even have to do this, you can probably just copy/paste your newly rendered regions from the new "dummy" Documents folder.  If you do copy your SimCity 4 folder, be careful and thorough, because Vista's "merge folders" doesn't work right... go figure.  It took several tries and a crash of Explorer for it to finally do it 100%.  Sometimes it will merge sub-folders and sometimes it won't.

I'm just so glad I finally got this to work &apls Thank you so much wouanagaine for all the great tools you make.  We'd still be in the Dark Ages without you.

djrenny

I have vista on my pc,and the same problem with sc4mapper..
I've readed the topic and moved the folder SimCity4 to D/SimCity4..but the program still don't work..
I've tried to istall mapper on disk C or in D disk,but the problem still remane..
please help me!

daeley

had the same problem with SC4Mapper, moved my folder from C:/Users/.../Documents  to  C:/My Documents and now it works. Unfortunately I don't have a D: drive on this machine. (well I do, but it's the DVD drive).
1. Install SC4+RH
2. Install LEX (CD&DVD helps) and latest NAM + updates
3. Play the game
4. ? ? ? ?
5. Profit!

catty

I use Windows XP and had the same problems with SC4Mapper not starting and was unable to use it with my Home Account, but have found that SC4Mapper works when I set up a Guest account on WinXP and use it there and save the map to a shared folder, its not ideal solution, but it does work on my computer   :)
I meant," said Ipslore bitterly, "what is there in this world that truly makes living worthwhile?" DEATH thought about it. "CATS," he said eventually, "CATS ARE NICE.

kristinaswan

#58
Short instructions for the fix to make this work with "Users\[Username\Documents" folder.  This is being done in Vista Home Premium 32-bit.  Not sure about any others.
Your user folder should look something like this.  We are going to be changing the location target for "My Documents".  Note you will not actually have to move anything, but you will have two "Documents" folders.

Right click and select Properties from the menu list for your current "Documents" folder.  This will have to be done from the right pane as in the left pane it isn't an option (at least on my machine).

Choose the Location Tab at the top and you should see a line highlighted in blue showing the current path to the Documents folder.  Simply delete "Users\" from that path and click "OK".

It should look like this.
You'll see a dialogue asking if you wish to move all of your documents.  It is your choice, but you do NOT have to do this.  You will, however, end up with a second Documents folder.  All of your new documents will go to the new location.  Create a "SimCity 4\Regions" folder to avoid the other error with saving regions.  Do note that any regions you would like to play will need to be moved to your new folder as Sim City will not see them in the old directory.

Note the two Documents folders and their respective Folder Paths at the right.  SC4Mapper will now open and you may create files as normal.

--------------------------------------------------------------------------
**OPTIONAL**
If you would like quick access to the old location from the new location you can additionally place a symbolic link...errrmm.....shortcut pointing back to the old location.  Right click inside the new folder and choose "New > Shortcut".  Right click the shortcut created and choose properties.  Add the deleted information into the line from earlier and click OK.  This should keep ease of access to the old location without moving any existing files.

steveaux03

lol Thanks a lot!!! People like you make my life 110% better!!  &apls &apls &apls &apls &apls &apls  :)