Roquen
|
 |
«
Reply #30 - Posted
2013-03-27 20:26:23 » |
|
I guess for completeness, for POSIX systems you have 'environ' to get the list (also available as third parameter to main) and 'unsetenv'. (unistd.h maybe...too lazy to reboot or fire up VirtualBox). I have touched a mac in a bagillion years, but it should be similar.
|
|
|
|
Nate
|
 |
«
Reply #31 - Posted
2013-03-27 20:37:21 » |
|
What would it fix?
|
|
|
|
Roquen
|
 |
«
Reply #32 - Posted
2013-03-27 20:40:16 » |
|
If you're asking about clearing environment variables, then HotSpot can be configured by various environment variables which could cause the game to explode or not behave as expected and would be a real nightmare to track down these kinds of "bugs".
|
|
|
|
Games published by our own members! Check 'em out!
|
|
princec
|
 |
«
Reply #33 - Posted
2013-03-27 21:39:27 » |
|
...exactly what happens to us  I'm slightly wary of nulling ALL the environment variables out though... are there any known gotchas? Cas 
|
|
|
|
Roquen
|
 |
«
Reply #34 - Posted
2013-03-27 22:03:02 » |
|
Environment variables are per process where they are copied from the parent, so no it only effects the game's process. zeroing out JAVA_HOME and JAVA_TOOL_OPTIONS is probably more than sufficient however.
|
|
|
|
Roquen
|
 |
«
Reply #35 - Posted
2013-03-27 22:07:50 » |
|
FOLLOW-UP: It just occurred to me that it's pretty possible that examining environment variables only occurs inside the default launcher which would make all of this moot.
|
|
|
|
princec
|
 |
«
Reply #36 - Posted
2013-03-27 22:08:39 » |
|
It seems to occur from my embedded stuff as well, so far as I can guess (it's very hard to pinpoint) Cas 
|
|
|
|
nsigma
|
 |
«
Reply #37 - Posted
2013-03-28 19:21:37 » |
|
I would be interested too in how to make mac and linux deployments.
like I have a structure, a private jre, a shell script or whatever ... on linux, to me personally, a .deb would be the greatest - with dependencies... then maybe you can even leave out the jre
so: ... - how to make a .deb
Been meaning to write this up for months so this was the final nudge  This is how Praxis LIVE is packaged as a .deb - http://praxisintermedia.wordpress.com/2013/03/28/packaging-as-a-deb/ It's for a NetBeans platform application, but should be dead easy to adapt if you've got a shell script to launch from.
|
Praxis LIVE - hybrid visual IDE for (live) creative coding
|
|
|
princec
|
 |
«
Reply #38 - Posted
2013-03-28 21:02:03 » |
|
We ditched .debs. Cas 
|
|
|
|
nsigma
|
 |
«
Reply #39 - Posted
2013-03-28 21:13:53 » |
|
We ditched .debs.
Reasoning? In favour of what?
|
Praxis LIVE - hybrid visual IDE for (live) creative coding
|
|
|
Games published by our own members! Check 'em out!
|
|
princec
|
 |
«
Reply #40 - Posted
2013-03-28 21:23:55 » |
|
We ditched them for tar.gz, because tar.gz works on all Linuxes, so we've only got one Linux version to worry about. Cas 
|
|
|
|
nsigma
|
 |
«
Reply #41 - Posted
2013-03-28 21:57:52 » |
|
We ditched them for tar.gz, because tar.gz works on all Linuxes, so we've only got one Linux version to worry about.
For non-installed usage that's fine (I do similar) but if you want to install and integrate with the OS then I don't think it's a good idea to bypass the packaging system. It should be easy enough to convert a .deb as simple as I describe to another type using alien.
|
Praxis LIVE - hybrid visual IDE for (live) creative coding
|
|
|
matheus23
|
 |
«
Reply #42 - Posted
2013-03-28 22:37:00 » |
|
We ditched them for tar.gz, because tar.gz works on all Linuxes, so we've only got one Linux version to worry about.
For non-installed usage that's fine (I do similar) but if you want to install and integrate with the OS then I don't think it's a good idea to bypass the packaging system. It should be easy enough to convert a .deb as simple as I describe to another type using alien. For that two downloads should be provided: "Download .deb package" and "Download as .tar.gz" Linux users will understand those descriptions.
|
|
|
|
princec
|
 |
«
Reply #43 - Posted
2013-03-29 11:36:35 » |
|
Can't be bothered. Twice the hassle for me. Cas 
|
|
|
|
matheus23
|
 |
«
Reply #44 - Posted
2013-03-29 11:44:14 » |
|
Can't be bothered. Twice the hassle for me. Cas  Now what? More customers and more hassle or less hassle and less costumers? 
|
|
|
|
Cero
|
 |
«
Reply #45 - Posted
2013-03-29 11:49:32 » |
|
For that two downloads should be provided: "Download .deb package" and "Download as .tar.gz" Linux users will understand those descriptions.
Yeah I'm gonna make a "Download for Debian / Ubuntu / Linux Mint" button and a "Download for other distributions". Debian distributions seem to be the most popular anyhow, especially for people who might be interested in games, steam is also on ubuntu. You might do a .RPM, but I dont think there is enough people at all. Can't be bothered. Twice the hassle for me.
Its annoying, but you are just being a lazy a ss. Its 10 more minutes. Actually If I already make a .deb, after that it would only be like 2 more minutes, its just copy and paste and leaving out the other stuff you dont need. But you also ditched demo version of your game and I also think you are just lazy there. If you design it right, its just one boolean and not putting in the levels and assets needed for the later game... well it depends on the game...
|
|
|
|
Roquen
|
 |
«
Reply #46 - Posted
2013-03-29 13:13:55 » |
|
Laziness is a virtue for a programmer (yeah, yeah...up to a point). My question would be: "Is the extra work worth an estimated number of incremental sells I'll get from doing this?" I'd guess the answer is (big fat) no.
|
|
|
|
princec
|
 |
«
Reply #47 - Posted
2013-03-29 13:19:01 » |
|
Roquen would be right. We've noticed no difference in Linux sales once we switched to tar.gz exclusively. No increase in Linux support either. And now I don't have to manage 6 different uploads just to cater for Linux when both other major desktop OSes manage to make do with just 1 each. #Win! Cas 
|
|
|
|
princec
|
 |
«
Reply #48 - Posted
2013-03-29 13:20:40 » |
|
Can't be bothered. Twice the hassle for me.
Its annoying, but you are just being a lazy a ss. Its 10 more minutes. Actually If I already make a .deb, after that it would only be like 2 more minutes, its just copy and paste and leaving out the other stuff you dont need. But you also ditched demo version of your game and I also think you are just lazy there. If you design it right, its just one boolean and not putting in the levels and assets needed for the later game... well it depends on the game... We used to do .deb, and flavours in both 32 and 64 bit. Waste of time, increased burden on us, customers didn't care anyway. All our games are still demos so I'm not sure if you're talking to me there or someone else. Cas 
|
|
|
|
Cero
|
 |
«
Reply #49 - Posted
2013-03-29 13:31:10 » |
|
All our games are still demos so I'm not sure if you're talking to me there or someone else.
Old story where you said you stopped having 2 builds, one for a demo. So your games are now full games, even the demo version, but you just have to unlock them. Not sure if thats still the case
|
|
|
|
princec
|
 |
«
Reply #50 - Posted
2013-03-29 14:44:35 » |
|
It never was the case. We've always had demos, and always they've been "unlockable" into full versions. In a twist of fate though we are thinking of ditching demos as they actively appear to discourage sales. Cas 
|
|
|
|
nsigma
|
 |
«
Reply #51 - Posted
2013-03-29 14:45:08 » |
|
Shipping a tar.gz isn't lazy if your game / application runs from a single directory in the user's home directory (what I mean by uninstalled usage). In fact I'm even lazier and ship a zip for uninstalled usage with binaries for all 3 OS in one. However, if you want to install properly (like proper icons, menu item, etc.) then bypassing the package system is a PITA. Don't see the point in trying to support all packaging systems though. .deb and possibly .rpm should cover most, with others pointed at alien.
Worth noting that Ubuntu Software Centre now offers the possibility to sell games too.
|
Praxis LIVE - hybrid visual IDE for (live) creative coding
|
|
|
princec
|
 |
«
Reply #52 - Posted
2013-03-29 14:46:10 » |
|
No interest in Ubuntu Software Centre here... Steam FTW. Cas 
|
|
|
|
SHC
|
 |
«
Reply #53 - Posted
2013-03-29 15:36:26 » |
|
You can try my apps.
Jar to exe converter
transfer2pc.weebly.com/1/post/2010/09/jar2exe-converter-11-gui.html
Install Express
transfer2pc.weebly.com/1/post/2010/12/install-express-beta-1.html
|
|
|
|
ReBirth
|
 |
«
Reply #54 - Posted
2013-03-30 02:07:39 » |
|
And after all of this, just distribute the jar with .bat, .sh, and .[osx execution script, whatever its name] 
|
|
|
|
princec
|
 |
«
Reply #55 - Posted
2013-03-30 10:58:02 » |
|
It's not that simple. Cas 
|
|
|
|
ReBirth
|
 |
«
Reply #56 - Posted
2013-04-01 01:33:39 » |
|
One thing I know from Windows user, their installed antivirus will scream like girl when find bat files 
|
|
|
|
|