My last screenshot...

Here you can present your city to the world.
User avatar
waders
TheoTown Veteran
Reactions:
Posts: 670
Joined: Fri Mar 25, 2016 23:26
Location: Poland

Re: My last screenshot...

Post by waders » Thu Aug 10, 2017 21:45

Zone for the rich
Attachments
Screenshot_2017-08-10-21-40-18.png
For my friends, my name is Michael

Online
User avatar
CommanderABab
Inhabitant of a galaxy city
Reactions:
Posts: 3252
Joined: Tue Jun 07, 2016 21:12

Re: My last screenshot...

Post by CommanderABab » Thu Aug 10, 2017 21:47

Nice!
333333Currently using beta 333. 333 :)
ImageTelegram - t.me/
๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธCommander๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ

Online
User avatar
Bearbear65
Inhabitant of a galaxy city
Reactions:
Posts: 3094
Joined: Fri Feb 10, 2017 14:53
Location: Bearagrade
Contact:

Re: My last screenshot...

Post by Bearbear65 » Fri Aug 11, 2017 5:33

Lobby wrote: โ†‘
Thu Aug 10, 2017 15:21
Changing the language has to do with hacking behind the scenes. But I got so much requests for this feature that I think it is worth it :bc
How did you do it I'm curious
Just my opinion :D
Telegram: Nicholas

User avatar
BetterBear
Inhabitant of a solar system city
Reactions:
Posts: 2300
Joined: Tue Apr 18, 2017 9:03
Location: I destroyed the timeline..
Contact:

Re: My last screenshot...

Post by BetterBear » Fri Aug 11, 2017 10:45

He's the dev, he knows everything.
BEaRz ArE AmAZiNG. I Am FeElIng SlEepY..

User avatar
Lobby
Developer of TheoTown
Reactions:
Posts: 1999
Joined: Sun Oct 26, 2008 12:34

Re: My last screenshot...

Post by Lobby » Fri Aug 11, 2017 11:11

I can only change the language for resources for a short time. So I change the language, copy all the translated strings into an own data structure and use this one to resolve translation requests in the future. It has a bit of overhead, but it will only be used if user set another language manually.

Code wise the important part looks like

Code: Select all

Resources resources = context.getResources();
DisplayMetrics dm = resources.getDisplayMetrics();
Configuration configuration = resources.getConfiguration();
Configuration newConfig = new Configuration(configuration);
newConfig.locale = locale;
Resources res = new Resources(resources.getAssets(), dm, newConfig);
try {
    Field[] fields = R.string.class.getDeclaredFields();
    idToString = new SparseArray<>();
    for (int i = 0; i < fields.length; i++) {
        int id = (Integer) fields[i].get(null);
        idToString.put(id, res.getString(id));
    }
} catch (IllegalAccessException e) {
    idToString = null;
}
resources.updateConfiguration(configuration, dm);
and isn't nice by any means. E.g. it uses reflection to get access on all translation ids which are stored as static fields in the R.string class.
...Have a nice stay

Online
User avatar
Bearbear65
Inhabitant of a galaxy city
Reactions:
Posts: 3094
Joined: Fri Feb 10, 2017 14:53
Location: Bearagrade
Contact:

Re: My last screenshot...

Post by Bearbear65 » Fri Aug 11, 2017 12:06

Show as the code all you want we won't be able to understand it :lol: :lol: :lol:
Just my opinion :D
Telegram: Nicholas

User avatar
BetterBear
Inhabitant of a solar system city
Reactions:
Posts: 2300
Joined: Tue Apr 18, 2017 9:03
Location: I destroyed the timeline..
Contact:

Re: My last screenshot...

Post by BetterBear » Fri Aug 11, 2017 13:17

Did anyone else lost their option to build runways? I lost it, but with some of them I kept I saw they are flashing now. Beautiful!
BEaRz ArE AmAZiNG. I Am FeElIng SlEepY..

Online
User avatar
Bearbear65
Inhabitant of a galaxy city
Reactions:
Posts: 3094
Joined: Fri Feb 10, 2017 14:53
Location: Bearagrade
Contact:

Re: My last screenshot...

Post by Bearbear65 » Fri Aug 11, 2017 13:21

I dare someone to make a perfect Y junction in theotown :evil: :D
Just my opinion :D
Telegram: Nicholas

User avatar
danekbel
Former danek_danevich
Reactions:
Posts: 2091
Joined: Thu May 05, 2016 9:33
Location: Ukraine
Contact:

Re: My last screenshot...

Post by danekbel » Fri Aug 11, 2017 13:25

Bellissimo
S70811-142420.jpg
้™่งฃๆ˜ฏๆˆ‘็š„ๅ–ๅ‘.

Online
User avatar
Bearbear65
Inhabitant of a galaxy city
Reactions:
Posts: 3094
Joined: Fri Feb 10, 2017 14:53
Location: Bearagrade
Contact:

Re: My last screenshot...

Post by Bearbear65 » Fri Aug 11, 2017 14:02

7/10
Just my opinion :D
Telegram: Nicholas

Online
User avatar
Fireout
Former FaizalGo112
Reactions:
Posts: 1917
Joined: Fri Feb 10, 2017 17:40
Location: Florida Police Station
Contact:

Re: My last screenshot...

Post by Fireout » Fri Aug 11, 2017 14:06

9/10
"Sam Pound I number one" Sam Pound

User avatar
BetterBear
Inhabitant of a solar system city
Reactions:
Posts: 2300
Joined: Tue Apr 18, 2017 9:03
Location: I destroyed the timeline..
Contact:

Re: My last screenshot...

Post by BetterBear » Fri Aug 11, 2017 14:06

BetterBear wrote: โ†‘
Fri Aug 11, 2017 13:17
Did anyone else lost their option to build runways? I lost it, but with some of them I kept I saw they are flashing now. Beautiful!
Anyone wants a pic?
BEaRz ArE AmAZiNG. I Am FeElIng SlEepY..

Online
User avatar
Bearbear65
Inhabitant of a galaxy city
Reactions:
Posts: 3094
Joined: Fri Feb 10, 2017 14:53
Location: Bearagrade
Contact:

Re: My last screenshot...

Post by Bearbear65 » Fri Aug 11, 2017 15:06

Ok
Just my opinion :D
Telegram: Nicholas

User avatar
Josh
Graphic designer
Reactions:
Posts: 1226
Joined: Sat Mar 11, 2017 19:20

Re: My last screenshot...

Post by Josh » Fri Aug 11, 2017 20:12

IGN 11/10
Website: http://theotownwiki.weebly.com
...Have a nice day :D . You discovered it.

Online
User avatar
CommanderABab
Inhabitant of a galaxy city
Reactions:
Posts: 3252
Joined: Tue Jun 07, 2016 21:12

Re: My last screenshot...

Post by CommanderABab » Sat Aug 12, 2017 11:19

Screenshot_20170812-033446.jpg
Screenshot_20170812-033020.jpg
333333Currently using beta 333. 333 :)
ImageTelegram - t.me/
๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธCommander๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ

Online
User avatar
Bearbear65
Inhabitant of a galaxy city
Reactions:
Posts: 3094
Joined: Fri Feb 10, 2017 14:53
Location: Bearagrade
Contact:

Re: My last screenshot...

Post by Bearbear65 » Sat Aug 12, 2017 13:22

Lol :lol:
Just my opinion :D
Telegram: Nicholas

Online
User avatar
khadafi laidi
Inhabitant of a megapolis
Reactions:
Posts: 739
Joined: Fri Dec 16, 2016 13:11
Location: ternate,indonesia

Re: My last screenshot...

Post by khadafi laidi » Sat Aug 12, 2017 14:10

My plugin :D ........
Fact about me:
-Sultan of FINDONEZIA
-Plugin illustrator
-Motivator
-Comedian B)
-OTAG founder
-OHAI leader

User avatar
MXD77
Metropolitan
Reactions:
Posts: 202
Joined: Mon May 15, 2017 0:05
Location: Gdaล„sk

Re: My last screenshot...

Post by MXD77 » Sat Aug 12, 2017 14:14

Building 5 Stars Hotel Kapitola
Screenshot_20170811-113431.png
Physic laureate :teach
Maybe aiplane pilot :space maybe architect :mine
But now-little plugin maker :plugin
So...
Have a niceday :)
Oh and greatings from Gdaล„sk ;)

Online
User avatar
khadafi laidi
Inhabitant of a megapolis
Reactions:
Posts: 739
Joined: Fri Dec 16, 2016 13:11
Location: ternate,indonesia

Re: My last screenshot...

Post by khadafi laidi » Sat Aug 12, 2017 14:15

Future complex.png
My city with FUTURE building
Fact about me:
-Sultan of FINDONEZIA
-Plugin illustrator
-Motivator
-Comedian B)
-OTAG founder
-OHAI leader

Online
User avatar
CommanderABab
Inhabitant of a galaxy city
Reactions:
Posts: 3252
Joined: Tue Jun 07, 2016 21:12

Re: My last screenshot...

Post by CommanderABab » Sat Aug 12, 2017 14:58

That looks promising!
333333Currently using beta 333. 333 :)
ImageTelegram - t.me/
๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธCommander๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ

User avatar
BetterBear
Inhabitant of a solar system city
Reactions:
Posts: 2300
Joined: Tue Apr 18, 2017 9:03
Location: I destroyed the timeline..
Contact:

Re: My last screenshot...

Post by BetterBear » Sat Aug 12, 2017 22:49

CommanderAbab: The ultimate TheoGamer :lol:
BEaRz ArE AmAZiNG. I Am FeElIng SlEepY..

Online
User avatar
CommanderABab
Inhabitant of a galaxy city
Reactions:
Posts: 3252
Joined: Tue Jun 07, 2016 21:12

Re: My last screenshot...

Post by CommanderABab » Sun Aug 13, 2017 2:20

Screenshot_20170812-192846.jpg
UFO set this on fire
333333Currently using beta 333. 333 :)
ImageTelegram - t.me/
๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธCommander๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ

User avatar
motomo
Villager
Reactions:
Posts: 24
Joined: Tue Aug 08, 2017 7:58
Location: almost Far East

Re: My last screenshot...

Post by motomo » Sun Aug 13, 2017 2:56

Osena.png
the not so dense city
Always make new mistakes
?(But in a good way)

Online
User avatar
CommanderABab
Inhabitant of a galaxy city
Reactions:
Posts: 3252
Joined: Tue Jun 07, 2016 21:12

Re: My last screenshot...

Post by CommanderABab » Sun Aug 13, 2017 3:27

I see a lot of cool looking plugins in there!
333333Currently using beta 333. 333 :)
ImageTelegram - t.me/
๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธCommander๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ

User avatar
motomo
Villager
Reactions:
Posts: 24
Joined: Tue Aug 08, 2017 7:58
Location: almost Far East

Re: My last screenshot...

Post by motomo » Sun Aug 13, 2017 6:02

CommanderABab wrote: โ†‘
Sun Aug 13, 2017 3:27
I see a lot of cool looking plugins in there!
yes, I put a lot plugins there (included your plugin, Commander :bc).
because, I love skyscrapers and I always want more :lol:
Mostly I found it on some SCURK sites (Simcity 2000 stuff) and a bit remodeled it just for my own personal use :lol:
Always make new mistakes
?(But in a good way)

Post Reply

Who is online

Users browsing this forum: khadafi laidi and 0 guests