[QUOTE=cam64DD;50447544][video=youtube;iEtiyn_5Lt8]https://www.youtube.com/watch?v=iEtiyn_5Lt8[/video]
some shitty low-quality footage of my shitty internet forum simulator, [URL="bulletingame.tumblr.com"]Bulletin[/URL][/QUOTE]
i really dig those shadows
[QUOTE=cam64DD;50447544]-snip sick video-
some shitty low-quality footage of my shitty internet forum simulator, [URL="bulletingame.tumblr.com"]Bulletin[/URL][/QUOTE]
So... is it a nose or a mouth?
[QUOTE=Ziks;50444267]The array itself is allocated separately, so the class would just contain a reference to an array (or null).[/QUOTE]
Well, if the value types get allocated on the stack, what do you fill the array with? How can you have a persistent object allocated on stack?
[QUOTE=Darwin226;50448206]Well, if the value types get allocated on the stack, what do you fill the array with? How can you have a persistent object allocated on stack?[/QUOTE]
It's only allocated on the stack in the case of parameters or local variables inside methods. To make sure I'm not being ambiguous, the "new" keyword doesn't allocate at all for structs, it's just the semantics for calling a constructor. When I say "allocated on the stack", I mean space is reserved on the stack for value type variables within a method. When you pass a value type somewhere else, that value is copied across rather than passing a reference to the location on the stack.
[editline]3rd June 2016[/editline]
Also arrays aren't value types, so they are allocated on the heap.
[QUOTE=Bambo.;50448147]So... is it a nose or a mouth?[/QUOTE]
you'll have to play the game to find out. :U
[QUOTE=Ziks;50448293]It's only allocated on the stack in the case of parameters or local variables inside methods. To make sure I'm not being ambiguous, the "new" keyword doesn't allocate at all for structs, it's just the semantics for calling a constructor. When I say "allocated on the stack", I mean space is reserved on the stack for value type variables within a method. When you pass a value type somewhere else, that value is copied across rather than passing a reference to the location on the stack.
[editline]3rd June 2016[/editline]
Also arrays aren't value types, so they are allocated on the heap.[/QUOTE]
Yeah, of course. This makes sense. I thought people were saying that structs were always "allocated" on the stack.
[QUOTE=cam64DD;50448303]you'll have to play the game to find out. :U[/QUOTE]
I see through your cunning viral smiley-use-inducing marketing strategy!
…
:U
[QUOTE=dylanb5123;50447173]Hi WAYWO! Last time I was here was last year, after being essentially boo-ed off the stage digitally.
I've been working on a project I'm really proud of and I would like some input.
[url]https://www.youtube.com/watch?v=WAZRL7JK2Q0[/url]
It's a 2D platformer, you use those torches to get temporary abilities to kill baddies and solve puzzles. So far I've got one ability programmed but I think my games pretty cool.
Hopefully I can return to waywo in a way that doesn't make everyone hate me again :/[/QUOTE]
that is a super cool platformer
[QUOTE=tisseman890;50447278]Yup, gives me a string out of bounds error whenever I try to uncompress the string.[/QUOTE]
[url=https://github.com/rufushuang/lz-string4java]This LZString library[/url] seems to work fine.
I made a small example [url=https://gist.github.com/egonny/c6929045ba40aa3595cb08cbeba1aa71]here[/url]
Had an idea last night for a little thing where AI velociraptors could smell/hear AI Jeff Goldblum, and chase him around a maze.
Anyhow, I was home sick today, and got the sounds/smells/maze implemented!
[video=youtube;hkA4YfXQ0Bo]https://www.youtube.com/watch?v=hkA4YfXQ0Bo[/video]
In MonoGame, for those wondering, using an old Component I had laying around to handle that FPS monitor, and wrote some new ones to handle event-based Input processing (mouse/keyboard) and time-based events.
[QUOTE=Egonny;50449277][url=https://github.com/pieroxy/lz-string]This LZString library[/url] seems to work fine.
I made a small example [url=https://gist.github.com/egonny/c6929045ba40aa3595cb08cbeba1aa71]here[/url][/QUOTE]
Holy shit! You are my hero!
[QUOTE=tisseman890;50450768]Holy shit! You are my hero![/QUOTE]
I'm confused. That's a Javascript library. How did that help?
[QUOTE=geel9;50450855]I'm confused. That's a Javascript library. How did that help?[/QUOTE]
Oh nevermind, I put the wrong URL in my post, let me fix that
[QUOTE=geel9;50450855]I'm confused. That's a Javascript library. How did that help?[/QUOTE]
Sorry, spoke too soon!
Going to try with the new link. :v:
[editline]4th June 2016[/editline]
Odd, the other library gives me this error:
[code]
Caused by: java.lang.ArrayIndexOutOfBoundsException: length=43; index=43
at com.apps.anker.fpdroid.Tools.LZString.readBit(LZString.java:302)
at com.apps.anker.fpdroid.Tools.LZString.readBits(LZString.java:312)
at com.apps.anker.fpdroid.Tools.LZString.decompress(LZString.java:364)
at com.apps.anker.fpdroid.Tools.LZString.decompressFromUTF16(LZString.java:697)
[/code]
This is my code as it is currently
[code]
public static Bitmap getBitmap() {
String decompressed = LZString.decompressFromUTF16("埐\u037Fᒌ偔瞊㐭࠹៸ⓑ䭆އ䶗ⵆ咨桺ଇ\u1289᷃濅䟷媋矹\u061Dᾜ栀\u1CA2ᑸဠ ");
char[] pixels = decompressed.toCharArray();
Bitmap bitmap = Bitmap.createBitmap(16, 16, Bitmap.Config.RGB_565);
int[] pixelsint = new int[pixels.length];
for (int i = 0; i < pixels.toString().length(); i++){
pixelsint[i] = pixels.toString().charAt(i) - '0';
}
bitmap.copyPixelsFromBuffer(IntBuffer.wrap(pixelsint));
return bitmap;
}[/code]
I basically just want a bitmap in the end.
Suffered from really bad performance recently and could not for the life of me figure out why. Turns out I had for some reason beyond my comprehension enabled both vsync and fps limiting at the same time. Only took three hours to find out.
Also here's a video showing some new stuff, a new cloth system in particular.
[video=youtube;pfFjSTsQkio]https://www.youtube.com/watch?v=pfFjSTsQkio[/video]
Initially I had a lot of problems with the Verlet integration: links would over-rotate and get stuck in awkward positions. I solved this by simply moving the simulation from 2D to 3D, but still drawing it in 2D. This gives the links room to move in z space, and prevents them from locking themselves into incorrect angles!
[QUOTE=tisseman890;50450940]Sorry, spoke too soon!
Going to try with the new link. :v:
[editline]4th June 2016[/editline]
Odd, the other library gives me this error:
[code]
Caused by: java.lang.ArrayIndexOutOfBoundsException: length=43; index=43
at com.apps.anker.fpdroid.Tools.LZString.readBit(LZString.java:302)
at com.apps.anker.fpdroid.Tools.LZString.readBits(LZString.java:312)
at com.apps.anker.fpdroid.Tools.LZString.decompress(LZString.java:364)
at com.apps.anker.fpdroid.Tools.LZString.decompressFromUTF16(LZString.java:697)
[/code]
This is my code as it is currently
[code]
public static Bitmap getBitmap() {
String decompressed = LZString.decompressFromUTF16("埐\u037Fᒌ偔瞊㐭࠹៸ⓑ䭆އ䶗ⵆ咨桺ଇ\u1289᷃濅䟷媋矹\u061Dᾜ栀\u1CA2ᑸဠ ");
char[] pixels = decompressed.toCharArray();
Bitmap bitmap = Bitmap.createBitmap(16, 16, Bitmap.Config.RGB_565);
int[] pixelsint = new int[pixels.length];
for (int i = 0; i < pixels.toString().length(); i++){
pixelsint[i] = pixels.toString().charAt(i) - '0';
}
bitmap.copyPixelsFromBuffer(IntBuffer.wrap(pixelsint));
return bitmap;
}[/code]
I basically just want a bitmap in the end.[/QUOTE]
That's weird, it works fine for me on Android as well.
[t]http://i.imgur.com/2wvw3wt.png[/t]
I can send you my source code through PM if you want, but I don't think I did anything really different compared to your code
Controlling an LED strip in my room with touchOSC
[media]https://www.youtube.com/watch?v=JDzUqWkzRQs[/media]
Excuse the heavy breathing, I'm still recovering from a cold
[QUOTE=DrDevil;50451889]Controlling an LED strip in my room with touchOSC
[media]https://www.youtube.com/watch?v=JDzUqWkzRQs[/media]
Excuse the heavy breathing, I'm still recovering from a cold[/QUOTE]
I don't see why you'd have it any other colour than pink/purple with that [URL="https://upload.wikimedia.org/wikipedia/en/e/e9/Floral_Shoppe_Alt_Cover.jpg"]bust[/URL] up there
I wanted to do this but the LED strips are just too weak. Not enough light.
[QUOTE=proboardslol;50452238]I wanted to do this but the LED strips are just too weak. Not enough light.[/QUOTE]
Last time I put up LED strip lighting for wall accenting in a spinal office it put off more light than the 50 downlights they had in the lobby combined. It used SMD5050 modules if that matters.
Right, I just used the cheapest strips I could find on aliexpress. I'll look into those thanks
[editline]4th June 2016[/editline]
Are they any more efficient than using Fluorescent or LED bulbs?
[QUOTE=Egonny;50451341]That's weird, it works fine for me on Android as well.
[t]http://i.imgur.com/2wvw3wt.png[/t]
I can send you my source code through PM if you want, but I don't think I did anything really different compared to your code[/QUOTE]
Please do.
[QUOTE=fewes;50451137]Suffered from really bad performance recently and could not for the life of me figure out why. Turns out I had for some reason beyond my comprehension enabled both vsync and fps limiting at the same time. Only took three hours to find out.
Also here's a video showing some new stuff, a new cloth system in particular.
[video=youtube;pfFjSTsQkio]https://www.youtube.com/watch?v=pfFjSTsQkio[/video]
Initially I had a lot of problems with the Verlet integration: links would over-rotate and get stuck in awkward positions. I solved this by simply moving the simulation from 2D to 3D, but still drawing it in 2D. This gives the links room to move in z space, and prevents them from locking themselves into incorrect angles![/QUOTE]
So at what point is this no longer a 2D engine, and what exactly are you gaining from doing it this way?
[QUOTE=Asgard;50453694]So at what point is this no longer a 2D engine, and what exactly are you gaining from doing it this way?[/QUOTE]
Honestly at this point I feel like I'm going to port the renderer to actually being 3D at some point (a big bottleneck right now is that a lot of render code happens on the CPU due to the 2D limitations of SFML). I'm very comfortable with SFML though and not so comfortable with regular OpenGL hence why I've been doing it this way, but I'm quickly learning native OpenGL coding. I do absolutely love basing it all on sprites though, the pipeline for creating assets is [B]so[/B] much faster than if they were in 3D.
Plus I feel like this is more unique than just another 3D engine, which a lot of people have told me also.
[QUOTE=Janooba;50452204]I don't see why you'd have it any other colour than pink/purple with that [URL="https://upload.wikimedia.org/wikipedia/en/e/e9/Floral_Shoppe_Alt_Cover.jpg"]bust[/URL] up there[/QUOTE]
I can totally see what the romans where going for, the aesthetics complete my room.
A number of things I've been working on in the past couple weeks:
In order to achieve maximum efficiency and performance in its Sanity Plea integration, Rant's runtime and compiler are getting a full rewrite and being converted to use a bytecode-based format. I am also completely redesigning its embedded scripting language and adding a bunch of new cool features. I expect this to take about two weeks.
I've started completely from scratch on the Sanity Plea project after realizing that I had made a number of terrible design decisions. I feel like this decision was for the best. I've already made some huge progress in just a few days and I'm very excited to show you guys what I've done. There's still a lot of work to do before I can post a demo, but I am very happy with my progress so far. Everything is coming together so much faster now that I know what the fuck I'm doing.
SanityCore, the backend for the game that handles all realtime simulations (economy, news media, weather, power grid, etc...), is coming along beautifully. As soon as I have the new Rant up and running, I will have some very interesting stuff to share related to this.
been a lot of on and off "trying to learn programming" and I'm back to trying and I actually feel like I'm making progress and having fun for once. I tried using courses and so on but I know too much while not knowing enough to be able to sit through them.
decided to "learn by doing" and actually had two project ideas which I think may be useful for my self. so much fun to work on!
always found it a little tedious to find my way to Putty, connect, select screen session and so on when whitelisting people for my MC servers so figured, I could make this more streamlined by making something myself.
[t]https://pred.me/pics/cmd_2016-06-04_12-51-46.png[/t]
it's not a lot but man have I struggled to get this going. its main function isn't in place yet, but I've finished the other stuff. if a config file is present, it'll read from that and connect like in the pic. if it's not present, it'll notify the user and tell them to insert hostname, username, password and port. it'll generate a .txt file and resume the program, then read the values inserted earlier from the .txt and connect using it. I plan on encrypting / hashing / whatever the .txt so the details aren't in plaintext once the program is more "complete". so much more fun to work on your own projects than sitting through mind numbing courses and doing made up exercises with no actual function
[QUOTE=Tamschi;50446502]C# also is a nicer markup language than HTML, with a little work up front: [code]using MarkUpGrade.FontAwesome;
using MarkUpGrade.Nodes;
using Portfolio.Templates;
namespace Portfolio.Pages
{
static class BackgroundTest
{
[Page("Background Test.html")]
static void WriteBackgroundTest(AddableTextWriter wr)
{
wr +=
new Page(Language.German) {
new Header { },
new Body {
new Background() {
{ "style", "background: orange;" },
new Div {
{ "class", "center background-inlay red" },
new FA(FA.Cog, FA.Spin),
new FA(FA.Cog, FA.Spin)
}
},
new TopBar {
"Test"
},
new H1 {
{ "class", "center" },
"(my name),",
"Softwareentwickler",
new FA(FA.Cog, FA.Spin)
},
new BottomBar {
"Test"
},
new Footer(Language.German)
}
};
}
}
}[/code]
Same with CSS (to some extent. They're roughly on par here since CSS is shorter but C# prevents typos):-snip-
Templating is available implicitly.
I posted this here before, but I didn't get around to make the actual website so both [I]MarkUpGrade[/I] and [I]Trendsetter[/I] are still in a proof of concept stage.[/QUOTE]
If you want to see how this is done right, look at Clojure's [url=https://github.com/weavejester/hiccup]hiccup[/url].
[IMG]https://pred.me/pics/Whitelister_2016-06-04_14-04-49.png[/IMG]
:D
this is probably my first ever program with any value whatsoever. wasn't sure about how to get around with securing the SSH details so right now it's in plaintext, any pointers?
[QUOTE=PredGD;50454091][IMG]https://pred.me/pics/Whitelister_2016-06-04_14-04-49.png[/IMG]
:D
this is probably my first ever program with any value whatsoever. wasn't sure about how to get around with securing the SSH details so right now it's in plaintext, any pointers?[/QUOTE]
I would suggest not storing the password at all and go for a public-private key setup instead if whatever library you're using (I'm assuming) supports that.
Sorry, you need to Log In to post a reply to this thread.