My last screenshot...

Here you can present your city to the world.

Moderator: Matison55557

User avatar
Bearbear65
Inhabitant of a Supercluster
Reactions:
Posts: 3752
Joined: Fri Feb 10, 2017 14:53
Location: Japan
Plugins: Show

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
ImageJust my opinion

User avatar
BetterBear
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2414
Joined: Tue Apr 18, 2017 9:03
Location: In a place you don't expect.
Plugins: Show
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..

Online
User avatar
Lobby
Developer
Reactions:
Posts: 2388
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone: LG E750

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

User avatar
Bearbear65
Inhabitant of a Supercluster
Reactions:
Posts: 3752
Joined: Fri Feb 10, 2017 14:53
Location: Japan
Plugins: Show

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:
ImageJust my opinion

User avatar
BetterBear
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2414
Joined: Tue Apr 18, 2017 9:03
Location: In a place you don't expect.
Plugins: Show
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..

User avatar
Bearbear65
Inhabitant of a Supercluster
Reactions:
Posts: 3752
Joined: Fri Feb 10, 2017 14:53
Location: Japan
Plugins: Show

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
ImageJust my opinion

User avatar
danekbel
Former danek_danevich
Reactions:
Posts: 2308
Joined: Thu May 05, 2016 9:33
Location: Ukraine
Plugins: Show
Version: Beta
Phone: Meizu MX5
Contact:

Re: My last screenshot...

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

Bellissimo
S70811-142420.jpg
some text.

User avatar
Bearbear65
Inhabitant of a Supercluster
Reactions:
Posts: 3752
Joined: Fri Feb 10, 2017 14:53
Location: Japan
Plugins: Show

Re: My last screenshot...

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

7/10
ImageJust my opinion

User avatar
Fireout
Former FaizalGo112
Reactions:
Posts: 2775
Joined: Fri Feb 10, 2017 17:40
Location: Longshire,Shireport
Plugins: Show
Contact:

Re: My last screenshot...

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

9/10
]]]

User avatar
BetterBear
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2414
Joined: Tue Apr 18, 2017 9:03
Location: In a place you don't expect.
Plugins: Show
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..

User avatar
Bearbear65
Inhabitant of a Supercluster
Reactions:
Posts: 3752
Joined: Fri Feb 10, 2017 14:53
Location: Japan
Plugins: Show

Re: My last screenshot...

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

Ok
ImageJust my opinion

User avatar
Josh
Graphic designer
Reactions:
Posts: 1999
Joined: Sat Mar 11, 2017 19:20
Plugins: Show
Version: Beta

Re: My last screenshot...

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

IGN 11/10
Proud TheoTown player sinds update 1.1.50

Creator of Aldorria, Covinton Empire, West Country, Sunnydale

Save nature, before it kills you🌲

User avatar
CommanderABab
Inhabitant of a Universe
Reactions:
Posts: 4412
Joined: Tue Jun 07, 2016 21:12
Plugins: Show

Re: My last screenshot...

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

Screenshot_20170812-033446.jpg
Screenshot_20170812-033020.jpg
387387Currently using beta 387. 387 What's new? Helis, chains, bgseed, slime! :)
ImageTelegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

User avatar
Bearbear65
Inhabitant of a Supercluster
Reactions:
Posts: 3752
Joined: Fri Feb 10, 2017 14:53
Location: Japan
Plugins: Show

Re: My last screenshot...

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

Lol :lol:
ImageJust my opinion

User avatar
khadafi laidi
Inhabitant of a Continent
Reactions:
Posts: 1110
Joined: Fri Dec 16, 2016 13:11
Location: ternate,indonesia
Plugins: Show

Re: My last screenshot...

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

My plugin :D ........
Fact about me:
-President of FINDONEZIA
-Plugin illustrator
-Motivator
-Comedian B)
-Indonesian translator (Stoped)
-I hate soccer :x

User avatar
MXD77
Inhabitant of a Megacity
Reactions:
Posts: 247
Joined: Mon May 15, 2017 0:05
Location: Gdańsk
Plugins: Show

Re: My last screenshot...

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

Building 5 Stars Hotel Kapitola
Screenshot_20170811-113431.png
Happy owner of cat and dog :D
Have a niceday :)
And greatings from Gdańsk ;)

User avatar
khadafi laidi
Inhabitant of a Continent
Reactions:
Posts: 1110
Joined: Fri Dec 16, 2016 13:11
Location: ternate,indonesia
Plugins: Show

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:
-President of FINDONEZIA
-Plugin illustrator
-Motivator
-Comedian B)
-Indonesian translator (Stoped)
-I hate soccer :x

User avatar
CommanderABab
Inhabitant of a Universe
Reactions:
Posts: 4412
Joined: Tue Jun 07, 2016 21:12
Plugins: Show

Re: My last screenshot...

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

That looks promising!
387387Currently using beta 387. 387 What's new? Helis, chains, bgseed, slime! :)
ImageTelegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

User avatar
BetterBear
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2414
Joined: Tue Apr 18, 2017 9:03
Location: In a place you don't expect.
Plugins: Show
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..

User avatar
CommanderABab
Inhabitant of a Universe
Reactions:
Posts: 4412
Joined: Tue Jun 07, 2016 21:12
Plugins: Show

Re: My last screenshot...

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

Screenshot_20170812-192846.jpg
UFO set this on fire
387387Currently using beta 387. 387 What's new? Helis, chains, bgseed, slime! :)
ImageTelegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

User avatar
motomo
Small-town resident
Reactions:
Posts: 33
Joined: Tue Aug 08, 2017 7:58
Location: Southern East China Sea
Plugins: Show

Re: My last screenshot...

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

Osena.png
the not so dense city

User avatar
CommanderABab
Inhabitant of a Universe
Reactions:
Posts: 4412
Joined: Tue Jun 07, 2016 21:12
Plugins: Show

Re: My last screenshot...

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

I see a lot of cool looking plugins in there!
387387Currently using beta 387. 387 What's new? Helis, chains, bgseed, slime! :)
ImageTelegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

User avatar
motomo
Small-town resident
Reactions:
Posts: 33
Joined: Tue Aug 08, 2017 7:58
Location: Southern East China Sea
Plugins: Show

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:

User avatar
CommanderABab
Inhabitant of a Universe
Reactions:
Posts: 4412
Joined: Tue Jun 07, 2016 21:12
Plugins: Show

Re: My last screenshot...

Post by CommanderABab » Sun Aug 13, 2017 13:15

Screenshot_20170813-063624.jpg
Screenshot_20170813-063933.jpg
387387Currently using beta 387. 387 What's new? Helis, chains, bgseed, slime! :)
ImageTelegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

User avatar
Bearbear65
Inhabitant of a Supercluster
Reactions:
Posts: 3752
Joined: Fri Feb 10, 2017 14:53
Location: Japan
Plugins: Show

Re: My last screenshot...

Post by Bearbear65 » Sun Aug 13, 2017 13:29

My eyes!!! My eyes!!! :lol:
ImageJust my opinion

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest