Switch to DuckDuckGo Search
   July 22, 2017
< | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31

bottom
[00:01:00] <Bluestormy> How it is
[00:01:05] <Bluestormy> Tell me more
[00:01:13] <Bluestormy> It was a bomb?
[00:03:47] *** SilenceDogood <SilenceDogood!465e733f@gateway/web/freenode/ip.70.94.115.63> has joined #libgdx
[00:03:49] <SilenceDogood> hi
[00:04:38] *** bomb <bomb!~bomb@unaffiliated/bomb> has quit IRC (Quit: ...)
[00:08:49] *** Fr4n <Fr4n!~Fr4n@unaffiliated/fr4n> has quit IRC (Ping timeout: 258 seconds)
[00:09:00] <SilenceDogood> I see in com.badlogic.graphics there are functions to encode a pixmap to a png, but is there the reverse of that?
[00:10:18] <SilenceDogood> i want to convert a png to a pixmap
[00:17:58] <ecv> u just have to load ur asset normally and get the pixmap from there
[00:18:32] <SilenceDogood> oh ok, no going directly from png to pixmap? you have to go png -> texture -> pixmap ?
[00:19:08] <ecv> im not entitled to answer that question. If there's a straight way i dont know it, sorry
[00:19:55] <jayhost> Pixmap is a representation of image data. It has the constructor, Pixmap(byte[] encodedData, int offset, int len)
[00:20:24] <ecv> if there's none maybe u could hack the lib to see what's being done and shorten the process if so
[00:21:54] <ecv> i mean follow the call stack when loading the asset because the bitmap must be being loaded somewhere in there, not sure if as a pixmap though, but it might be easy to get a pixmap from there
[00:22:21] *** Fr4n <Fr4n!~Fr4n@unaffiliated/fr4n> has joined #libgdx
[00:23:55] <Tomski> SilenceDogood: you can load a pixmap from png file
[00:24:05] <Tomski> Pretty sure it has a FileHandle constructor
[00:24:41] <SilenceDogood> i must have missed that but i'll check again
[00:24:56] <SilenceDogood> man i feel stupid when somebody points out something i missed like that.
[00:25:04] <SilenceDogood> thanks Tomski
[00:27:01] <Bluestormy> Happens to me Everytime
[00:28:34] <Bluestormy> Sometimes a new day gives you another perspective...
[00:39:14] <Bluestormy> So why it's so bad idea to put everything on a stage and not only the UI?
[00:40:33] *** guwop <guwop!~remi@53.235.10.109.rev.sfr.net> has quit IRC (Ping timeout: 248 seconds)
[00:40:53] *** EdgyMC_69 <EdgyMC_69!4fa390b4@gateway/web/freenode/ip.79.163.144.180> has quit IRC (Quit: Page closed)
[00:43:03] *** desertpunk12 <desertpunk12!~desertpun@121.54.50.89> has joined #libgdx
[00:49:49] *** guwop <guwop!~remi@53.235.10.109.rev.sfr.net> has joined #libgdx
[00:50:04] *** sistergodiva <sistergodiva!~sistergod@c213-89-209-161.bredband.comhem.se> has quit IRC (Read error: Connection reset by peer)
[00:51:54] <Tomski> Bluestormy: scene2d actors couple view and model together tightly
[00:52:06] <Tomski> thats not generally a good idea for game stuff
[00:56:39] *** guwop <guwop!~remi@53.235.10.109.rev.sfr.net> has quit IRC (Ping timeout: 268 seconds)
[01:02:25] *** teks <teks!~teks@176.43.145.219> has joined #libgdx
[01:02:51] <teks> Anyone knows how to setup iCloud on iOS with RoboVM?
[01:05:38] <Tomski> no such thing
[01:06:15] <teks> Tomski: What do you mean?
[01:07:38] <Tomski> What do YOU mean!?
[01:07:51] <Lecherito> Le good old Tomski
[01:08:11] <teks> I'm talking about adding iCloud Key Value storage support to my game
[01:08:25] <Tomski> oh
[01:08:28] <Tomski> there is no setup
[01:09:02] <teks> Have to add Entitlements.plist first of all
[01:09:20] <teks> but i'm getting ApplicationVerificationFailed error when i added it
[01:09:27] <teks> http://www.badlogicgames.com/forum/viewtopic.php?f=11&t=22895
[01:09:41] <teks> Someone had asked this before
[01:10:33] <Tomski> you added support in your certificate and redownloaded?
[01:11:24] <teks> yes
[01:12:39] <teks> i added <iosEntitlementsPList> key to my robovm.xml,am i wrong?
[01:13:40] *** LiquidNitrogen <LiquidNitrogen!~quassel@122-56-233-25.mobile.spark.co.nz> has joined #libgdx
[01:15:27] <Tomski> teks: what settings are you using in your provisioning profile?
[01:15:47] <teks> icloud enabled only
[01:16:30] <Tomski> purge the profiles you have locally, and redownload them
[01:16:35] <Tomski> make sure they are deleted
[01:18:04] *** guwop <guwop!~remi@53.235.10.109.rev.sfr.net> has joined #libgdx
[01:18:07] <Tomski> so you added   <iosEntitlementsPList>Entitlements.plist.xml</iosEntitlementsPList> to your robovm.xml, and it contains what?
[01:18:41] <teks> it contains default entitlements keys
[01:19:09] <teks> but robovm already adding it , i understand now
[01:30:07] *** hextileX <hextileX!~Thunderbi@xdsl-89-0-101-241.netcologne.de> has quit IRC (Quit: hextileX)
[01:32:44] *** desertpunk12 <desertpunk12!~desertpun@121.54.50.89> has quit IRC (Remote host closed the connection)
[01:33:12] *** desertpunk12 <desertpunk12!~desertpun@121.54.50.89> has joined #libgdx
[01:40:41] <LiquidNitrogen> http://i.imgur.com/KW6MeFy.jpg is there any basic strategy for preventing things from getting clipped against the near plane?
[01:42:20] <LiquidNitrogen> if i set near to 0.1f theres not enough fidelity at the far distance
[01:47:44] <teks> Tomski: How can i clear RoboVM cache?
[01:48:48] <Tomski> delete ~/.robovm/cache
[01:50:49] <teks> Thank you so much Tomski!
[01:52:42] <jayhost> Tomski You were talking about controllers - Monoprice has Xbox one bluetooth edition for $40 which is probably a nice upgrade over 360 controller. https://www.monoprice.com/product?c_id=114&cp_id=11406&cs_id=1140601&p_id=18796&seq=1&format=2 . The one I have syncs to Android. I think the mapping has to be changed IIRC
[01:53:29] <jayhost> Pretty sure have to have root to change mapping but it works for GearVR
[01:59:29] <Tomski> jayhost: shame shipping is high
[02:00:54] <Tomski> teks: running?
[02:01:24] <teks> No,it still cant copy right entitlements
[02:01:47] <teks> i cant understand where it fetches entitlements
[02:02:03] <teks> using custom entitlement file not works
[02:03:30] <Tomski> You are getting verification issue still?
[02:03:36] <teks> yes
[02:03:52] <Tomski> And you deleted your profile completely?
[02:03:57] <Tomski> And redownloaded from itunes connect
[02:04:06] <teks> yes recreated and downloaded
[02:05:39] <Tomski> teks: the contents of your file?
[02:06:19] <teks> robovm still fetches only default values
[02:06:24] <teks> doesnt add com.apple.developer.ubiquity-kvstore-identifier key
[02:06:55] <teks> it still fetches old values,i deleted everyting ,cleared project cache
[02:07:59] <Tomski> add that yourself
[02:08:36] <teks> but when i use custom entitlement file,i got verification error
[02:08:53] *** deep-book-gk_ <deep-book-gk_!~1wm_su@67.212.234.142> has joined #libgdx
[02:11:22] *** deep-book-gk_ <deep-book-gk_!~1wm_su@67.212.234.142> has left #libgdx
[02:13:12] *** new <new!~gui@152.200.37.21> has joined #libgdx
[02:14:36] <Tomski> teks: you must have the container-identifiers and the kvstore-identnfier in the entitlements
[02:14:55] <teks> yes provisioning profile has that
[02:14:55] *** Fastinyoh <Fastinyoh!~Fastinyoh@136.24.168.96> has joined #libgdx
[02:15:03] <Tomski> You need it in your entitlements file
[02:15:32] <teks> i understand but robovm doesnt copy that from provisioning profile
[02:15:41] <Tomski> You manually put it in
[02:16:05] <teks> it's in tmp folder,am i need to change it manually?
[02:16:12] *** Fastinyoh <Fastinyoh!~Fastinyoh@136.24.168.96> has quit IRC (Read error: Connection reset by peer)
[02:16:12] <Tomski> no
[02:16:20] <Tomski> Make a new File next to robovm.xml
[02:16:35] <Tomski> Entitlements.plist.xml, add the correct entries given the spec here https://developer.apple.com/library/content/documentation/Miscellaneous/Reference/EntitlementKeyReference/Chapters/EnablingiCloud.html
[02:16:50] <Tomski>   <iosEntitlementsPList>Entitlements.plist.xml</iosEntitlementsPList>
[02:16:50] <Tomski>  in your robovm.xml
[02:20:50] *** Fastinyoh <Fastinyoh!~Fastinyoh@136.24.168.96> has joined #libgdx
[02:22:10] <teks> Tomski: Can i use CKContainer.getDefaultContainer().getAccountStatus to get status of iCloud on App?
[02:22:26] <teks> I'm getting The application is missing required entitlement com.apple.developer.icloud-services error
[02:22:52] <teks> and yes i dont have it on entitlements file
[02:25:12] *** Fastinyoh <Fastinyoh!~Fastinyoh@136.24.168.96> has quit IRC (Ping timeout: 260 seconds)
[02:25:34] *** deep-book-gk_ <deep-book-gk_!~1wm_su@50.97.229.247> has joined #libgdx
[02:28:34] *** deep-book-gk_ <deep-book-gk_!~1wm_su@50.97.229.247> has quit IRC (K-Lined)
[02:29:10] <teks> Tomski: Solved,thank you so much!
[02:30:16] <Tomski> woop
[02:39:03] *** new <new!~gui@152.200.37.21> has quit IRC (Quit: n)
[02:41:30] *** Xpe <Xpe!~Xpe@unaffiliated/xpe> has joined #libgdx
[02:41:44] *** desertpunk12 <desertpunk12!~desertpun@121.54.50.89> has quit IRC (Read error: Connection reset by peer)
[02:42:42] *** Fastinyoh <Fastinyoh!~Fastinyoh@136.24.168.96> has joined #libgdx
[02:43:00] *** deep-book-gk_ <deep-book-gk_!~1wm_su@77.234.41.151> has joined #libgdx
[02:44:33] *** deep-book-gk_ <deep-book-gk_!~1wm_su@77.234.41.151> has left #libgdx
[02:44:38] *** SilenceDogood <SilenceDogood!465e733f@gateway/web/freenode/ip.70.94.115.63> has quit IRC (Quit: Page closed)
[02:46:57] *** Fastinyoh <Fastinyoh!~Fastinyoh@136.24.168.96> has quit IRC (Ping timeout: 240 seconds)
[02:53:16] *** Mac70 <Mac70!~Mac70@195.187.156.43> has quit IRC (Quit: Leaving)
[03:04:00] *** Fastinyoh <Fastinyoh!~Fastinyoh@136.24.168.96> has joined #libgdx
[03:08:10] *** Fastinyoh <Fastinyoh!~Fastinyoh@136.24.168.96> has quit IRC (Ping timeout: 255 seconds)
[03:10:52] *** X-Ray-Jin <X-Ray-Jin!~X-Ray-Jin@dslb-092-076-022-169.092.076.pools.vodafone-ip.de> has quit IRC (Read error: Connection reset by peer)
[03:11:35] *** Fr4n <Fr4n!~Fr4n@unaffiliated/fr4n> has quit IRC (Ping timeout: 240 seconds)
[03:17:47] *** ecv <ecv!d4a9b895@gateway/web/cgi-irc/kiwiirc.com/ip.212.169.184.149> has quit IRC (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
[03:18:45] *** guardianx <guardianx!~guardian@120.18.164.177> has joined #libgdx
[03:20:33] *** ecv <ecv!d4a9bb37@gateway/web/cgi-irc/kiwiirc.com/ip.212.169.187.55> has joined #libgdx
[03:21:07] *** solarlune_ <solarlune_!~solarlune@2606:6000:6507:3900:e96c:5f4e:d618:961f> has joined #libgdx
[03:24:05] *** teks <teks!~teks@176.43.145.219> has quit IRC ()
[03:24:23] *** Fr4n <Fr4n!~Fr4n@unaffiliated/fr4n> has joined #libgdx
[03:31:46] *** oskarkv <oskarkv!~oskar@c213-89-229-43.bredband.comhem.se> has quit IRC (Remote host closed the connection)
[03:33:18] *** Lecherito <Lecherito!uid30063@gateway/web/irccloud.com/x-ettwacwyttfgskep> has quit IRC (Quit: Connection closed for inactivity)
[03:41:01] *** guwop <guwop!~remi@53.235.10.109.rev.sfr.net> has quit IRC (Ping timeout: 255 seconds)
[03:50:49] *** Torfesk <Torfesk!65b2c8a0@gateway/web/cgi-irc/kiwiirc.com/ip.101.178.200.160> has joined #libgdx
[03:50:57] *** davimore <davimore!~davimore@109.236.94.25> has quit IRC (Ping timeout: 240 seconds)
[03:52:11] *** Fastinyoh <Fastinyoh!~Fastinyoh@136.24.168.96> has joined #libgdx
[03:52:43] *** Fastinyoh <Fastinyoh!~Fastinyoh@136.24.168.96> has quit IRC (Read error: Connection reset by peer)
[03:55:22] *** guardianx <guardianx!~guardian@120.18.164.177> has quit IRC (Remote host closed the connection)
[03:57:54] *** davimore <davimore!~davimore@109.236.94.25> has joined #libgdx
[03:58:18] *** guardianx <guardianx!~guardian@120.18.164.177> has joined #libgdx
[04:03:03] <Torfesk> Question: Is there a good way to read a pdf file and save a page from it as a texture?
[04:06:24] *** Fastinyoh <Fastinyoh!~Fastinyoh@136.24.168.96> has joined #libgdx
[04:07:18] *** lukass <lukass!~lukass@p5B05E393.dip0.t-ipconnect.de> has quit IRC (Remote host closed the connection)
[04:07:29] *** lukass <lukass!~lukass@p5B05E393.dip0.t-ipconnect.de> has joined #libgdx
[04:08:08] *** lukass <lukass!~lukass@p5B05E393.dip0.t-ipconnect.de> has quit IRC (Remote host closed the connection)
[04:08:17] *** lukass <lukass!~lukass@p5B05E393.dip0.t-ipconnect.de> has joined #libgdx
[04:08:56] *** lukass <lukass!~lukass@p5B05E393.dip0.t-ipconnect.de> has quit IRC (Remote host closed the connection)
[04:09:05] *** lukass <lukass!~lukass@p5B05E393.dip0.t-ipconnect.de> has joined #libgdx
[04:09:44] *** lukass <lukass!~lukass@p5B05E393.dip0.t-ipconnect.de> has quit IRC (Remote host closed the connection)
[04:09:53] *** lukass <lukass!~lukass@p5B05E393.dip0.t-ipconnect.de> has joined #libgdx
[04:10:32] *** lukass <lukass!~lukass@p5B05E393.dip0.t-ipconnect.de> has quit IRC (Remote host closed the connection)
[04:10:47] *** Fastinyoh <Fastinyoh!~Fastinyoh@136.24.168.96> has quit IRC (Ping timeout: 260 seconds)
[04:13:09] <Torfesk> I might have to go outside Libgdx and use some Android PdfRenderer. Oh, well.
[04:14:40] *** Isogash <Isogash!~Isogash@87.127.112.116> has quit IRC (Read error: Connection reset by peer)
[04:19:24] <jayhost> Screenshot? or more convoluted?
[04:20:44] <Torfesk> The thing I want to do is really simple. I have this pdf and I want to save whole pages from it as textures and use those textures in my app.
[04:21:00] <jayhost> Yeah I imagine you could just use something like https://pdfbox.apache.org/
[04:21:03] <Torfesk> at runtime of course.
[04:21:13] <Torfesk> cool
[04:22:20] <Torfesk> Thanks! Looks pretty straight forward.
[04:25:12] *** Torfesk <Torfesk!65b2c8a0@gateway/web/cgi-irc/kiwiirc.com/ip.101.178.200.160> has quit IRC (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
[04:25:57] *** DB219 <DB219!40e5a7ea@gateway/web/freenode/ip.64.229.167.234> has joined #libgdx
[04:42:42] *** thach <thach!7465edee@gateway/web/freenode/ip.116.101.237.238> has joined #libgdx
[04:42:57] <thach> Hi you
[04:43:28] <thach> I have a problem convert RectangleMapObject to Ractangle in libgdx 1.9.6
[04:43:54] <thach> I use     Rectangle var3 = ((RectangleMapObject)var1).getRectangle();
[04:44:13] <thach> but error java.lang.ClassCastException: com.badlogic.gdx.maps.tiled.objects.TiledMapTileMapObject cannot be cast to com.badlogic.gdx.maps.objects.RectangleMapObject
[04:47:59] <LiquidNitrogen> Rectangle var3 = ((RectangleMapObject)var1.getRectangle());  //maybe??
[04:53:00] *** mapank <mapank!~mayank@180.151.101.99> has joined #libgdx
[04:54:52] <guardianx> getRekt()
[04:57:00] <thach>   minesObj = new ArrayList(TileLoader.mapObject.size());        MinesObjects var2;       for(Iterator var0 = TileLoader.mapObject.iterator(); var0.hasNext(); minesObj.add(var2)) {          MapObject var1 = (MapObject)var0.next();          var2 = new MinesObjects();          System.out.println(" Debug loi convert day");          // Tim cach chuyen doi MapObject sang RectangleMapObject          Rectangle var3 = ((RectangleMapObject)var
[04:57:07] <thach> this is my code
[04:59:31] <jayhost> please use hastebin or equivalent to paste code. https://hastebin.com/
[05:00:28] <thach> https://hastebin.com/guyudeneno.lisp
[05:03:55] *** Fastinyoh <Fastinyoh!~Fastinyoh@136.24.168.96> has joined #libgdx
[05:06:00] <thach> Can you help me,jayhost
[05:06:24] *** Fr4n <Fr4n!~Fr4n@unaffiliated/fr4n> has quit IRC (Ping timeout: 268 seconds)
[05:08:14] *** Xpe <Xpe!~Xpe@unaffiliated/xpe> has quit IRC (Read error: Connection reset by peer)
[05:08:32] *** Fastinyoh <Fastinyoh!~Fastinyoh@136.24.168.96> has quit IRC (Ping timeout: 260 seconds)
[05:11:09] *** lukass <lukass!~lukass@p5B05E393.dip0.t-ipconnect.de> has joined #libgdx
[05:15:43] <jayhost> Probably at some point. Soldering atm.
[05:19:59] *** Fr4n <Fr4n!~Fr4n@unaffiliated/fr4n> has joined #libgdx
[05:24:05] <thach> Oh. thank you . I will find problem
[05:24:26] <thach> I think my code convert type have problem
[05:28:22] *** guardianx <guardianx!~guardian@120.18.164.177> has quit IRC (Remote host closed the connection)
[05:31:48] <TEttinger> hello, thach. I'll take a look
[05:32:11] <LiquidNitrogen> thach: the TiledMapTileMapObject isnt based on RectangleMapObject, thats why you cant cast it to that.
[05:34:46] <thach> yes. I know. I want convert it replace  object.
[05:35:06] <TEttinger> that's also some generally strange code. there's special syntax for looping by iteration, such as "for(String s : someListOfStrings) {}"
[05:36:38] <TEttinger> you're also using Iterator, which doesn't have any information on what type it produces, instead of something like Iterator<MapObject> or whatever type is contained in TileLoader.mapObject
[05:37:11] <DB219> TEttinger: anybody use scene2d TextButtons? I think I found an issue with scaling when the Stage viewport is small compared to TextButton's background's 9-patch...
[05:41:38] <TEttinger> DB219: I don't use TextButtons currently, but I know scaling has received changes in 1.9.4 and 1.9.5 for Labels
[05:45:25] <DB219> I think this guy had somewhat of a similar issue... https://github.com/libgdx/libgdx/issues/3060
[05:45:35] *** mapank <mapank!~mayank@180.151.101.99> has quit IRC (Ping timeout: 240 seconds)
[05:46:27] <DB219> the background gets all messed up for seemingly no reason (should be independent of text size).
[05:47:40] *** mapank <mapank!~mayank@180.151.101.99> has joined #libgdx
[05:49:57] <TEttinger> thach: what type is TileLoader, here? I also don't know what TileLoader.mapObject should have inside it. does TileLoader.mapObject only contain TiledMapTileMapObject values?
[05:56:40] *** lukass_ <lukass_!~lukass@p5B05F31B.dip0.t-ipconnect.de> has joined #libgdx
[05:59:52] *** lukass <lukass!~lukass@p5B05E393.dip0.t-ipconnect.de> has quit IRC (Ping timeout: 260 seconds)
[06:00:34] <TEttinger> thach: here's my attempt; it only will assign a value to rect if it can be cast to a RectangleMapObject or something that has a Texture, which allows us to get the image bounds. https://hastebin.com/lobewusone.java
[06:01:08] <TEttinger> rect will be null if it can't be given a Rectangle value, so be aware of that
[06:08:45] *** Jeffol <Jeffol!~Jeffol@ip72-198-214-57.om.om.cox.net> has joined #libgdx
[06:12:56] <thach> Thank Tettunger
[06:13:43] <TEttinger> I don't know if it does what you want, I wasn't sure what some of the var0, var1, var2 were there for
[06:14:46] <thach> I set change name it i sent code at this.
[06:14:58] <thach> it is object in my game i development
[06:15:31] <thach> But i add <MapObject> have error cast to
[06:15:36] <thach> not convert
[06:18:02] <TEttinger> that's probably because you haven't said what any of the variables' types are
[06:18:11] <TEttinger> so I can't really guess
[06:19:03] <TEttinger> oh, you mean here?
[06:19:04] <TEttinger>     minesObj = new ArrayList<MinesObject>(TileLoader.mapObject.size());
[06:19:28] <TEttinger> that means you must have declared minesObj as an ArrayList with no type, which is just a hassle to work with
[06:19:57] <TEttinger> it's pretty clear you haven't learned about generics yet, but they're really important in Java
[06:22:03] <thach> return size ArrayList have type MinesObject is game Object in my game
[06:25:25] <TEttinger> ok, what I'm saying is, you only add MinesObject values to the ArrayList called minesObj. Unless there's some other type being added elsewhere, the code will be easier to read if you say what type is in the ArrayList instead of just using Object.
[06:26:05] <TEttinger> but you can take out the <MinesObject> if you want
[06:34:00] *** Fastinyoh <Fastinyoh!~Fastinyoh@136.24.168.96> has joined #libgdx
[06:38:53] *** DB219 <DB219!40e5a7ea@gateway/web/freenode/ip.64.229.167.234> has quit IRC (Quit: https://play.google.com/store/apps/details?id=com.datzapps.amaze)
[06:39:18] <thach> Okay.
[06:39:22] <thach> Thank
[06:39:26] <thach> I will change
[06:47:13] *** voxelv <voxelv!~voxelv@c-73-11-51-148.hsd1.or.comcast.net> has joined #libgdx
[06:48:05] <voxelv> hello
[06:48:27] <LiquidNitrogen> hi
[06:55:30] *** Fastinyoh <Fastinyoh!~Fastinyoh@136.24.168.96> has quit IRC (Remote host closed the connection)
top

   July 22, 2017
< | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31