• What Are You Working On? - August 2014
    1,181 replies, posted
[QUOTE=Clavus;45658085][url]http://www.anandtech.com/show/8363/khronos-announces-next-generation-opengl-initiative[/url] [img]http://images.anandtech.com/doci/8363/OGLNG1_575px.png[/img] [img]http://images.anandtech.com/doci/8363/OGLNG3_575px.png[/img] After all the buzz around DX12, Mantle and other low-level API stuff, it was just waiting to happen.[/QUOTE] Awesome!
Giving vim another shot. I figured that even if I only use it as a regular text editor in baby mode I can still make use of plugins. Got to say, I'm not loving what I'm seeing at the moment. GVim UI looks like someone made it once for Windows 95 and it hasn't been touched since. There's no dedicated package repository as far as I can see and it looks like it's resisting me every step of the way. Can someone that usually advertises Vim honestly tell me if all of this is worth it? I mean, it really seems like it's a huge "I'm a pro coder" bandwagon. When someone asks a slightly aggressive question about it on SO, everyone goes into defensive douchebag mode. I get it that you can customize to your hearts content, but what if I don't find that a good thing? When I buy a car, I don't expect it to come in a box saying "assembly required". Would you say that using sublime or something similar in Vim mode is inferior to using Vim? I know someone said something along the lines of "What if you want to run a program and insert it's output into your source?". What if I don't? I mean really, who does that? I really don't want to offend anyone with this. It just seems that modern editors do everything good that Vim can do with much less hassle but the simple lack of the old-school feel makes programmers go berserk.
[QUOTE=Darwin226;45658385]Giving vim another shot. I figured that even if I only use it as a regular text editor in baby mode I can still make use of plugins. Got to say, I'm not loving what I'm seeing at the moment. GVim UI looks like someone made it once for Windows 95 and it hasn't been touched since. There's no dedicated package repository as far as I can see and it looks like it's resisting me every step of the way. Can someone that usually advertises Vim honestly tell me if all of this is worth it? I mean, it really seems like it's a huge "I'm a pro coder" bandwagon. When someone asks a slightly aggressive question about it on SO, everyone goes into defensive douchebag mode. I get it that you can customize to your hearts content, but what if I don't find that a good thing? When I buy a car, I don't expect it to come in a box saying "assembly required". Would you say that using sublime or something similar in Vim mode is inferior to using Vim? I know someone said something along the lines of "What if you want to run a program and insert it's output into your source?". What if I don't? I mean really, who does that? I really don't want to offend anyone with this. It just seems that modern editors do everything good that Vim can do with much less hassle but the simple lack of the old-school feel makes programmers go berserk.[/QUOTE] In the end, it all comes down to personal preference. If you want an IDE that does everything out of the box, by all means use Visual Studio or whatever. If you want full control over your workspace, vim is the best option IMO. However if you're using Sublime, you should probably just take the extra step and use vim instead. [editline]11th August 2014[/editline] Also regarding plugins, you should install pathogen, then you can just git clone repositories into ~/.vim/bundle/
[quote]I mean, it really seems like it's a huge "I'm a pro coder" bandwagon[/quote] Because of this i taught i NEEDED to know Vim, turns out i don't :P It is worth learning the basics for when you need to do some console stuff (like when there is no desktop environment available) If you want to learn it, by all means do it. But i don't think it's as "required" as some people brushes it off to be, but I can't deny knowing it is at least useful.
[QUOTE=Darwin226;45658385]Got to say, I'm not loving what I'm seeing at the moment. GVim UI looks like someone made it once for Windows 95 and it hasn't been touched since. There's no dedicated package repository as far as I can see and it looks like it's resisting me every step of the way.[/QUOTE] That's GTK for you. Also, did you try searching? There are multiple, very easy to use, package systems. The easiest packaging methods in use being [url=https://github.com/gmarik/Vundle.vim]Vundle[/url] and [url=https://github.com/tpope/vim-pathogen]Pathogen[/url]. [QUOTE=Darwin226;45658385]Can someone that usually advertises Vim honestly tell me if all of this is worth it? I mean, it really seems like it's a huge "I'm a pro coder" bandwagon. When someone asks a slightly aggressive question about it on SO, everyone goes into defensive douchebag mode. Would you say that using sublime or something similar in Vim mode is inferior to using Vim? I know someone said something along the lines of "What if you want to run a program and insert it's output into your source?". What if I don't? I mean really, who does that?[/QUOTE] Sublime text is non free software, that's enough of a black mark for me when it comes to a critical component like my text editor. Also I'm fairly sure that ST doesn't work over ssh, unless you want to start using X forwarding which is a pretty janky experience at the best of times. [QUOTE=Darwin226;45658385]I really don't want to offend anyone with this. It just seems that modern editors do everything good that Vim can do with much less hassle but the simple lack of the old-school feel makes programmers go berserk.[/QUOTE] I don't use emacs, but Vim is much better at manipulating text than most IDEs, and most IDEs have different shortcuts and functionality. At least when you use vim / emacs you can use the same key presses to do the same thing regardless of what you're editing. The only upside to using an IDE like QtCreator is that autocomplete will tend to work better out of the box, I have been playing with YouCompleteMe recently but even the minimal configuration required is a bit of a pain in the ass.
[QUOTE=Darwin226;45658385]Got to say, I'm not loving what I'm seeing at the moment. GVim UI looks like someone made it once for Windows 95 and it hasn't been touched since. There's no dedicated package repository as far as I can see and it looks like it's resisting me every step of the way.[/QUOTE] Ironically, the worst part of GVim is the UI. I only use it since running Vim in a terminal comes with all the disadvantages of a terminal (worse mouse support, no italics, fewer colors, etc.). I use [code]set guioptions=ai[/code] which basically makes GVim look like a terminal with Vim in it, but keeps all of the nice benefits of [I]not[/I] being in a terminal. [QUOTE=Darwin226;45658385]Can someone that usually advertises Vim honestly tell me if all of this is worth it?[/QUOTE] I think it's worth it if all you want is a text editor (a really powerful one!). There are tons of overcomplicated plugins out there that add file browsers and debuggers and shit, but that completely defeats the purpose of Vim IMO. I definitely [B]do not recommend[/B] copying someone's "TOTALLY AWESOME VIMRC" to get started. That just ends up changing a bunch of shit you don't understand. Pick and choose bits of people's vimrc as you find stuff you don't like. Mine are pretty minimal, and are mostly "complete" as far as I'm concerned. I don't change them much anymore [URL="https://github.com/silverhammermba/.files/blob/delta/.vimrc"].vimrc[/URL] [URL="https://github.com/silverhammermba/.files/blob/delta/.gvimrc"].gvimrc[/URL]
[QUOTE=Extravagant;45623054]So with SetPixel (I know I said the last one was my last but.. this is a proper program) I made a visualizer which shows my CPU usage in the console by the length of the line (and the colour too) [IMG]http://i60.tinypic.com/2gv4nwg.jpg[/IMG] Me spamming open windows explorer is to show that is does actually effect the line sizes :P[/QUOTE] Looks cool ! Do you have the source open to others ? [editline]11th August 2014[/editline] [QUOTE=Torrunt;45628706]I've been working on the UI of my game a bit, mainly so I can easily test either singleplayer or multiplayer without having to open my config file first. Added a main menu, pause menu and added health and money to the HUD. [vid]https://dl.dropboxusercontent.com/u/7113767/Videos/ZombieGame_UIStuff.webm[/vid] I used GWEN for the input text boxes and the rest is dealt with the same way as the game animations (designed in Flash and exported out using my dynamic sprite sheet exporter).[/QUOTE] Looks really amazing. Is the project being only done by you? [editline]11th August 2014[/editline] [QUOTE=Sippeangelo;45647855]Four days later: Finally managed to get skeletal animation working without spazzy spaghetti syndrome. Assimp is so backwards... [video=youtube;QP-mW5eX_Mw]http://www.youtube.com/watch?v=QP-mW5eX_Mw[/video][/QUOTE] Looks very cool to me ;)
[QUOTE=Larikang;45659176]Ironically, the worst part of GVim is the UI. I only use it since running Vim in a terminal comes with all the disadvantages of a terminal (worse mouse support, no italics, fewer colors, etc.). I use [code]set guioptions=ai[/code] which basically makes GVim look like a terminal with Vim in it, but keeps all of the nice benefits of [I]not[/I] being in a terminal. I think it's worth it if all you want is a text editor (a really powerful one!). There are tons of overcomplicated plugins out there that add file browsers and debuggers and shit, but that completely defeats the purpose of Vim IMO. I definitely [B]do not recommend[/B] copying someone's "TOTALLY AWESOME VIMRC" to get started. That just ends up changing a bunch of shit you don't understand. Pick and choose bits of people's vimrc as you find stuff you don't like. Mine are pretty minimal, and are mostly "complete" as far as I'm concerned. I don't change them much anymore [URL="https://github.com/silverhammermba/.files/blob/delta/.vimrc"].vimrc[/URL] [URL="https://github.com/silverhammermba/.files/blob/delta/.gvimrc"].gvimrc[/URL][/QUOTE] Ok, so step one is removing the UI. Got it. Now, what's the incantation for making it look snazzy like that screenshot on the previous page?
I have some time to burn, so i resumed messing around with ancient acclaim package formats again. Turok 2, 3, and Rage Wars have an uncompressed string at the end of each map sub block, which simply contains the map name. The n64 version of T2, and n64 only games don't use it at all, and has hard coded menus as one would expect. The PC version of T2 on the other hand, iterates the offset table and grabs the strings to populate the dialogues. [img]http://i.imgur.com/PlPkWB2.png[/img]
Got my road generation to work! Still needs some tweaking, but it looks pretty damn good so far. [vid]http://webm.zone/i/1rU.webm[/vid]
[QUOTE=WTF Nuke;45660714]Got my road generation to work! Still needs some tweaking, but it looks pretty damn good so far. [vid]http://webm.zone/i/1rU.webm[/vid][/QUOTE] Wow. Some of the angles are uselessly shallow/small, but other than that, great job!
[QUOTE=Darwin226;45660007]Ok, so step one is removing the UI. Got it. Now, what's the incantation for making it look snazzy like that screenshot on the previous page?[/QUOTE] Mainly the colorscheme. I use desert256 for vim, molokai for gvim. Then [code]set number set ruler set hlsearch syntax enable[/code] Gives you line numbers, cursor position, search term highlighting, and syntax highlighting. And in Gvim I use [code]set cursorline cursorcolumn[/code] to highlight the current line and column of the cursor.
[QUOTE=jmazouri;45654745]Wow, it's like a natural extension of WC3 modding![/QUOTE] I'm just waiting for someone to make WC3 in DOTA2
Anyone have any information on controlling a game server from a website? I am trying to make some custom tools however not sure where to start. I figured this would go in this section because it would be more generalized programming, rather then web design/making.
[QUOTE=TH3_L33T;45661512]Anyone have any information on controlling a game server from a website? I am trying to make some custom tools however not sure where to start. I figured this would go in this section because it would be more generalized programming, rather then web design/making.[/QUOTE] Send the server daemon commands via CGI or via PHP exec() or something. Depends on what your web server is running on or capable of. And what the server program can respond to.
[QUOTE=danharibo;45658632] Also I'm fairly sure that ST doesn't work over ssh, unless you want to start using X forwarding which is a pretty janky experience at the best of times. [/QUOTE] [url]https://www.xpra.org/[/url] makes it slightly less janky
Using vim is like cutting off your legs because you hate how you have to walk around. (Sorry vim guys, i've tried)
[QUOTE=Darwin226;45658385]Giving vim another shot. I figured that even if I only use it as a regular text editor in baby mode I can still make use of plugins. Got to say, I'm not loving what I'm seeing at the moment. GVim UI looks like someone made it once for Windows 95 and it hasn't been touched since. There's no dedicated package repository as far as I can see and it looks like it's resisting me every step of the way.[/QUOTE] This is what my environment looks like. Doesn't look anything like Windows 95 to me. [IMG]http://puu.sh/aOtOS/4ce736da1e.png[/IMG] [QUOTE=Darwin226;45658385] Can someone that usually advertises Vim honestly tell me if all of this is worth it? I mean, it really seems like it's a huge "I'm a pro coder" bandwagon. When someone asks a slightly aggressive question about it on SO, everyone goes into defensive douchebag mode.[/QUOTE] It's not worth it if you're not willing to spend time learning it. After you learn it maybe it's worth it? I don't know. I know that today I can't really code anywhere that doesn't have vim bindings. Can't say if this is faster or slower though, but it feels good. [QUOTE=Darwin226;45658385] I get it that you can customize to your hearts content, but what if I don't find that a good thing? When I buy a car, I don't expect it to come in a box saying "assembly required".[/QUOTE] Well if you don't like customization you don't like customization. I have no problems with building my way up my editor, but I use Windows instead of Linux because I don't like how many things I have to usually customize on whatever Linux distro. So it's just a matter of knowing what you like. [QUOTE=Darwin226;45658385] Would you say that using sublime or something similar in Vim mode is inferior to using Vim? I know someone said something along the lines of "What if you want to run a program and insert it's output into your source?". What if I don't? I mean really, who does that?[/QUOTE] I've used Sublime for a few months and went back to vim. Can't point out any unique reason but it just feels better to me.
[QUOTE=bean_xp;45661296]I'm just waiting for someone to make WC3 in DOTA2[/QUOTE] [vid]https://static.curlybracket.co.uk/s/file/2014-08-11_23-27-39.mp4[/vid] Annoyingly need two abilities to do this as I can't get move orders etc as events.
Been a while since I've really put together anything of note. This is a simple little math puzzle game I call ArithmeStax, built in Java. Goal of the game is to reach a target number by performing a set of predefined operations on a set of predefined numbers. The catch is that everything is in stacks, and the only control you have is popping and pushing elements between the stacks. Numbers can be pushed onto any number stack, operations can be pushed onto any operation stack. Numbers cannot be pushed onto operation stacks. Operations can be pushed onto number stacks, and doing so will execute the operation onto the entire stack, from right to left (top to bottom), until only one number remains. The game board cannot be solved until only one number remains, which needs to be the target number. Not all operations are required to be used. Every 8 games, the difficulty increases. The game is currently text-based, but it is simply showing off the concept. My ultimate end-goal is to build a proper UI for the game, and build an Android app out of it. I hate graphics programming and designing, though, so it's text-based for now. Use the "help" command for more information. [t]http://a.pomf.se/jgnzib.png[/t] [url=https://dl.dropboxusercontent.com/u/8416055/ProgrammingPortfolio/ArithmeStax.rar]ArithmeStax Download[/url] Note that if you run out of operations, right now the game currently just sits in limbo. You can "restart" to get around that. The game does progress itself on solving, however. Likewise, if you push an operation onto an empty stack, it will generate a zero that [b]must[/b] disappear. The simple solution is to add another number onto the zero. Also note that every target [b]is[/b] obtainable with the numbers and operations presented: the game uses a pre-solver that randomly pushes elements until it generates a single number. That single number becomes your target, and then the board is reset to allow you to play it. If you get stuck, you can use "trace" to see what the presolver did. Chances are it isn't the optimal solution, because that isn't what the presolver is designed to do - its only purpose is to guarantee a solution exists. Thirdly, note that only addition and subtraction are supported operations. I intend to add multiplication and division (which will round quotients down to the nearest integer), and have considered non-full-stack operations such as unary or binary operations (square-root and exponentation). At a later time, I intend to rewrite the presolver and make it used non-uniformly-distributed probability weights in its determining how to solve puzzles. This will allow more fine-grained control of difficulty, such as forcing it to shuffle numbers around a lot before it applies operations. Right now it's all uniformly distributed and pretty chaotic. Results in some pretty silly choices being made. Please don't hesitate to let me know what you guys think, and maybe even share how far you get. It gets pretty crazy in the later difficulties, though. :v:
I began implementing list objects in Manhood. I have been wanting to do this for a while because I wanted a way to create/use blocks at runtime without resorting to hacky [isub] calls. This code is a loop designed to append ten names to an empty list object, and display the progress on each step: [code][lst testList/local] [rs 10/\n] { [lstaddi testList/<name>] testList: \[ [rs each/,\s][sync _/ordered][before "][after "][lstblock testList] \] [reset _] }[/code] Ran it, and it successfully added the items. Then I looked closer at the pattern it was making... [code]testList: [ "Shahryar" ] testList: [ "Bradshaw", "Shahryar" ] testList: [ "Bradshaw", "Elton", "Shahryar" ] testList: [ "Bradshaw", "Elton", "Jeff", "Shahryar" ] testList: [ "Bradshaw", "Elton", "Jeff", "Barton", "Shahryar" ] testList: [ "Bradshaw", "Elton", "Jeff", "Barton", "Fairfax", "Shahryar" ] testList: [ "Bradshaw", "Elton", "Jeff", "Barton", "Fairfax", "Colby", "Shahryar" ] testList: [ "Bradshaw", "Elton", "Jeff", "Barton", "Fairfax", "Colby", "Bishop", "Shahryar" ] testList: [ "Bradshaw", "Elton", "Jeff", "Barton", "Fairfax", "Colby", "Bishop", "Menelin", "Shahryar" ] testList: [ "Bradshaw", "Elton", "Jeff", "Barton", "Fairfax", "Colby", "Bishop", "Menelin", "Edgar", "Shahryar" ][/code] WTF? :suicide:
[QUOTE=TheSnake;45659431]Looks really amazing. Is the project being only done by you?[/QUOTE] Thanks. Someone else did the graphics, I'm doing all the programming.
Just spent all night trying to get a project in Android Studio to compile with Gradle. Fuck Gradle. POS overly complicated excuse for a build system that's broken with every release and requires a shitton of XML changes for every single rerelease. What happened to backwards compatability?
[QUOTE=Xystus234;45665351]Just spent all night trying to get a project in Android Studio to compile with Gradle. Fuck Gradle. POS overly complicated excuse for a build system that's broken with every release and requires a shitton of XML changes for every single rerelease. What happened to backwards compatability?[/QUOTE] Simple: Gradle is meant for androids.
[QUOTE=GamingRobot32;45661705][url]https://www.xpra.org/[/url] makes it slightly less janky[/QUOTE] This. I've been using Sublime Text 2 over SSH + Xpra for nearly a year solid now, meaning that my work env is the same everywhere (since every time I log into my VPS) Xpra also works on Windows/Linux/OSX pretty much the same, meaning there is no strange stuff with moving between the two. If you have a ping of less than ~40-50ms to your server then xpra works a treat (Though, that does depend on how used you are to typing on slightly late SSH terminals)
In terms of editing code: what's the advantage of working directly on the remote machine over SSH compared to setting up your editor to FTP automatically on save? Most good editors (including Sublime) have a plugin for automatic (S)FTP uploads I can almost understand if there's no noticeable lag, but why not edit lots of text in one go then essentially "bulk" upload it to the server? That way you don't get a 50ms delay on each keystroke, you just get a 50ms delay on the final upload then however long it takes to upload the file you're working on over FTP. My housemate prefers to edit code directly on his server over SSH, while I always use auto FTP. I remember a few instances when he ended up struggling with an intermittent/slow connection (or when his server went offline :v:). How do you work when the server is offline or you have no internet connection?
[QUOTE=Trumple;45667000]In terms of editing code: what's the advantage of working directly on the remote machine over SSH compared to setting up your editor to FTP automatically on save? Most good editors (including Sublime) have a plugin for automatic (S)FTP uploads I can almost understand if there's no noticeable lag, but why not edit lots of text in one go then essentially "bulk" upload it to the server? That way you don't get a 50ms delay on each keystroke, you just get a 50ms delay on the final upload then however long it takes to upload the file you're working on over FTP. My housemate prefers to edit code directly on his server over SSH, while I always use auto FTP. I remember a few instances when he ended up struggling with an intermittent/slow connection (or when his server went offline :v:). How do you work when the server is offline or you have no internet connection?[/QUOTE] Personally I always work with my code in SCM systems, and as such, I simply commit my changes when I can confirm the setup is working locally, and push it "upstream" to my VPS where I host everything. That way, I don't need to do any weird shit. I also have a manual syncronization system for all the extra content that is not versioned, or which I cannot push, where it simply uses rsync with ssh to syncronize my local folders to the remote location, thus avoiding any information being sent twice, not to mention only sending the exact files which actually changed between syncronizations. So you get the best of both worlds, SSH and fast file transfers, not to mention local development. [editline]12th August 2014[/editline] Oh, and I might as well link to this as well, considering it isn't really git-specific. [url=http://nvie.com/files/Git-branching-model.pdf]A successful Git branching model[/url] (pdf).
[QUOTE=Trumple;45667000]In terms of editing code: what's the advantage of working directly on the remote machine over SSH compared to setting up your editor to FTP automatically on save? Most good editors (including Sublime) have a plugin for automatic (S)FTP uploads I can almost understand if there's no noticeable lag, but why not edit lots of text in one go then essentially "bulk" upload it to the server? That way you don't get a 50ms delay on each keystroke, you just get a 50ms delay on the final upload then however long it takes to upload the file you're working on over FTP. My housemate prefers to edit code directly on his server over SSH, while I always use auto FTP. I remember a few instances when he ended up struggling with an intermittent/slow connection (or when his server went offline :v:). How do you work when the server is offline or you have no internet connection?[/QUOTE] Why would you edit anything on a server anyway? I don't know much cases where it wouldn't be better to work locally and then upload everything in one go after testing the changes.
[QUOTE=Tamschi;45667139]Why would you edit anything on a server anyway? I don't know much cases where it wouldn't be better to work locally and then upload everything in one go after testing the changes.[/QUOTE] In a good ecosystem, there are none.
I am working on a new version of my package format. It is aimed at games. Still working on the whole idea of it, so have a diagram showing the structure I have planned; [img]http://i.imgur.com/oV6o5nz.png[/img] For comparison, here's the previous version from about 2 years ago; [img]http://i.imgur.com/4YQWRFt.png[/img]
Sorry, you need to Log In to post a reply to this thread.