My last screenshot...

Here you can present your city to the world.

Moderator: Matison55557

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

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
Reactions:
Posts: 2387
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..

Online
User avatar
Lobby
Developer
Reactions:
Posts: 2217
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

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

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
Reactions:
Posts: 2387
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..

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

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: 2201
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
Currently using ver. 1.3.58

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

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: 2469
Joined: Fri Feb 10, 2017 17:40
Location: At my house
Contact:

Re: My last screenshot...

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

9/10
The SUN is DEADLY LAZER

User avatar
BetterBear
Inhabitant of a Galaxy
Reactions:
Posts: 2387
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..

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

Re: My last screenshot...

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

Ok
ImageJust my opinion

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

Re: My last screenshot...

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

IGN 11/10
Proud TheoTown player sinds update 1.1.50
My plugins and collections!
Creator of Aldorria, Covinton Empire, West Country, Sunnydale
Save nature, before it kills you🌲

User avatar
CommanderABab
Inhabitant of a Supercluster
Reactions:
Posts: 3862
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
363363Currently using beta 363. 363 What's new? Airport! :)
ImageTelegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

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

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

User avatar
MXD77
Inhabitant of a Megacity
Reactions:
Posts: 221
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 ;)

User avatar
khadafi laidi
Inhabitant of a Continent
Reactions:
Posts: 1006
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:
-President of FINDONEZIA
-Plugin illustrator
-Motivator
-Comedian B)
-Indonesian translator (Stoped)
-I hate soccer :x

User avatar
CommanderABab
Inhabitant of a Supercluster
Reactions:
Posts: 3862
Joined: Tue Jun 07, 2016 21:12

Re: My last screenshot...

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

That looks promising!
363363Currently using beta 363. 363 What's new? Airport! :)
ImageTelegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

User avatar
BetterBear
Inhabitant of a Galaxy
Reactions:
Posts: 2387
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..

User avatar
CommanderABab
Inhabitant of a Supercluster
Reactions:
Posts: 3862
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
363363Currently using beta 363. 363 What's new? Airport! :)
ImageTelegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

User avatar
motomo
Small-town resident
Reactions:
Posts: 28
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)

User avatar
CommanderABab
Inhabitant of a Supercluster
Reactions:
Posts: 3862
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!
363363Currently using beta 363. 363 What's new? Airport! :)
ImageTelegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

User avatar
motomo
Small-town resident
Reactions:
Posts: 28
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)

User avatar
CommanderABab
Inhabitant of a Supercluster
Reactions:
Posts: 3862
Joined: Tue Jun 07, 2016 21:12

Re: My last screenshot...

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

Screenshot_20170813-063624.jpg
Screenshot_20170813-063933.jpg
363363Currently using beta 363. 363 What's new? Airport! :)
ImageTelegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

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

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 0 guests