• What Do You Need Help With? V6
    7,544 replies, posted
[QUOTE=RedBlade2021;45605676]So I started trying to learn OpenGL (Specifically GLES) and is it pretty normal to be really confused about it all? I've been reading more tutorials on it and some of it is starting to make sense, but the shaders aren't quite clear yet. Does anyone have any advice towards clearing this stuff up?[/QUOTE] Yeah it's confusing, my advice is to keep at it, you will get it eventually.
So I've been digging around C++ for a while, and in wanting to actually draw something, I'm trying to learn OpenGL (GLFW). Does anyone know of any good tutorials that walk you through it? Some tutorials will write off entire sections of code as "just have this in here, it's important" without really elaborating on its significance, or what it does.
[url]http://www.opengl-tutorial.org/[/url] [url]http://open.gl/[/url] [url]http://www.arcsynthesis.org/gltut/[/url] The last one uses FreeGLUT but it's still a great learning resource. I learned basically all my OpenGL through those tuts.
Best way to uniquely identify a computer? I have designed a licensing system for my app, which works great, I just need a good way to ID a user. I have tried a few things like UUID and windows version but I keep getting duplicate values. Any ideas?
[QUOTE=Phrozen99;45613385]Best way to uniquely identify a computer? I have designed a licensing system for my app, which works great, I just need a good way to ID a user. I have tried a few things like UUID and windows version but I keep getting duplicate values. Any ideas?[/QUOTE] Your licensing system is already flawed, a single user can have more than one computer or change computer after some time.
Is learning C# in VS clever if you want to learn to script c# with unity? If not, where should I start for scripting c# with Unity?
VS with [url]http://unityvs.com/[/url] is pretty cool (although some people said they had problems with debugging using unityvs). otherwise, monodevelop. But even witouth unityvs (it doesn't add THAT much anyway), i prefer VS over monodevelop. If you don't use unityvs, you lose the ability to put breakpoints and such (the monodevelop supplied along with unity has this by default)
I see, thanks for that! Do you have any idea on where to start learning to script with C#? I've programmed a bit with C# before but nothing to do with games.
[url]http://unity3d.com/learn[/url] [url]http://unity3d.com/learn/tutorials/modules[/url] [url]http://docs.unity3d.com/ScriptReference/[/url] [url]http://docs.unity3d.com/Manual/ScriptingSection.html[/url] Check those things. They also have tutorial projects [url]http://unity3d.com/learn/tutorials/projects/roll-a-ball[/url] [url]http://unity3d.com/learn/tutorials/projects/space-shooter[/url] Also, one more thing about using any specific IDE. It doesn't really matter. Take what you know best. You can even use notepad if you want (obviously not having any debug abilities :p) EDIT: now that i see the setting. IF you use unityvs and you heavily use logging, turn off the "send console to visual studio" setting. VS won't respond until it has received all the console input
[QUOTE=Phrozen99;45613385]Best way to uniquely identify a computer? I have designed a licensing system for my app, which works great, I just need a good way to ID a user. I have tried a few things like UUID and windows version but I keep getting duplicate values. Any ideas?[/QUOTE] How does it work great if you can't ID an user? This is basically why programs use activation keys. The key identifies the user.
[QUOTE=Arxae;45618835][url]http://unity3d.com/learn[/url] [url]http://unity3d.com/learn/tutorials/modules[/url] [url]http://docs.unity3d.com/ScriptReference/[/url] [url]http://docs.unity3d.com/Manual/ScriptingSection.html[/url] Check those things. They also have tutorial projects [url]http://unity3d.com/learn/tutorials/projects/roll-a-ball[/url] [url]http://unity3d.com/learn/tutorials/projects/space-shooter[/url] Also, one more thing about using any specific IDE. It doesn't really matter. Take what you know best. You can even use notepad if you want (obviously not having any debug abilities :p) EDIT: now that i see the setting. IF you use unityvs and you heavily use logging, turn off the "send console to visual studio" setting. VS won't respond until it has received all the console input[/QUOTE] Excellent! Thank you! If I told you my end project for what I'm aiming at was to make something like terraria (I know it's not original but I think it'd be fun to make) then where would you suggest I start? I've literally just made a clock following this tutorial: [url]http://catlikecoding.com/unity/tutorials/clock/#a-quaternion[/url]. And I know this won't stick.. I wouldn't even be able to do it again now.
How experienced are you in C# (and/org programming in general)? Want to keep it 2D like teraria? or go 3d? Is the end project for school? If yes, how long do you get?
I'm experienced up until doing graphics without an engine. Made a full game and published on game maker. I still wanna keep it 2D and it's not for school, but I'd rather be able to work on it constantly anyway. Thanks for your help btw man
No problem :P You would probably be best off generating a plain/level field with a size of 1 screen(just some blocks stacked on each other with no difference in height for the top level) Implement movement/collision detection and what not Implement removing blocks in any range first, then in range. Implement a different type of block like sand that goes below the top block Then start working on generating a random screen, then move on to generating a larger level. That should keep you occupied for a week or so xD For code, i have no clue. You will probably have to import a spritesheet (functionality is in the later unity version by default), pick a block and just position them in a structured order (first), then in a random position that makes sense (later, with level generation)
Excellent thanks! Also if I google terraria clone unity it doesn't seem to be done a lot. Is this incredibly difficult to do in unity? How would you Suggest Other ways to do it? Would you Just say to do it in 2D unity or use unity 3d? Sorry about the iphone formatting.
I need to deploy a C# program with the capability of talking to an embedded arduino over serial. On a Mac. I have my software prepared for both, but I don't know a thing about deploying software on apple products. I know .NET doesn't play nice outside of the windows environment, but its my strongest language. Alternatively I could probably add Ethernet capability to the hardware and bounce everything off a central server. But that presents a few other issues (I don't have a server). [Editline]b[/editline] Actually looking at the price of adding an Ethernet port to this, its cheaper to buy a RPiB+...
[QUOTE=Erasus;45622427]Excellent thanks! Also if I google terraria clone unity it doesn't seem to be done a lot. Is this incredibly difficult to do in unity? How would you Suggest Other ways to do it? Would you Just say to do it in 2D unity or use unity 3d? Sorry about the iphone formatting.[/QUOTE] The reason you won't find much of it is because in the minecraft vs teraria debate, minecraft usually wins. thus there are more clones of it. At least thats what i think. It's not that it's harder, i think it's a bit easier in fact since you are only working on 2 dimensions (not calling it easy in general though :p) Just take it step by step. The hardest part is generating convincing random terrain, no matter how many dimensions (although 3d is a tad bit harder due to 3 dimensions :p) Take the a sprite sheet (like this one : [url]http://i.imgur.com/ybJPt6l.jpg[/url] (yes it's the one from minecraft). Look up how to slice the sheet up in unity ([url]http://unity3d.com/learn/tutorials/modules/beginner/2d/sprite-editor[/url]) and start placing stuff, again step by step. Randomly place a single type of tile onto the screen. Add in character movement on these tiles. Place them in a specific order (like make a floor) Use 2 types of tiles (top layer grass, all layers below it sand or something) Add height variance (take the previous step into account) Add different types (like metal) at random positions BELOW the first layer Adjust these types so they are at a plausible depth. Do all of these steps without screen panning, add this in later on when you are comfortable generating a single screen. [quote]I have my software prepared for both, but I don't know a thing about deploying software on apple products. I know .NET doesn't play nice outside of the windows environment, but its my strongest language.[/quote] On a chance i am misunderstanding you, have you looked at mono? :P
[QUOTE=cartman300;45613689]Your licensing system is already flawed, a single user can have more than one computer or change computer after some time.[/QUOTE] I make it so it works on up to five devices. [QUOTE=esalaka;45619701]How does it work great if you can't ID an user? This is basically why programs use activation keys. The key identifies the user.[/QUOTE] Yes, the key which identifies the user, what is the best way to do that? You ignored my question.
This is my very first day trying to learn programming. I chose the latest version of Python! Is it okay for me to be using the latest version, or should I go back one? Some stuff has changed apparently, so I'm not sure what's best, and a lot of the tutorials and documentation I'm finding seem to be out of date. Anyway, for my first hurdle, I'm trying to figure out how to make a random attribute roller for a tabletop RPG I play with my friends. For attributes, you roll three six sided die. If the total is 16 or higher, roll another six sided dice. If you roll a 6, roll one more 6 sided dice. The total is your attribute score. So, in "I don't know code language, but I'm trying!" terms, something like: [code] (3-18)=a if a<16 add (1-6) if 6 add (1-6) total ??? [/code] I have gotten here in python: [code]print ([randint(3,18)])[/code] Which works! But now I'm totally stuck on how to get the "if" statements working. Doh. Any pointers?
[QUOTE=Big Dumb American;45625899]This is my very first day trying to learn programming. I chose the latest version of Python! Is it okay for me to be using the latest version, or should I go back one? Some stuff has changed apparently, so I'm not sure what's best, and a lot of the tutorials and documentation I'm finding seem to be out of date. Anyway, for my first hurdle, I'm trying to figure out how to make a random attribute roller for a tabletop RPG I play with my friends. For attributes, you roll three six sided die. If the total is 16 or higher, roll another six sided dice. If you roll a 6, roll one more 6 sided dice. The total is your attribute score. So, in "I don't know code language, but I'm trying!" terms, something like: [code] (3-18)=a if a<16 add (1-6) if 6 add (1-6) total ??? [/code] I have gotten here in python: [code]print ([randint(3,18)])[/code] Which works! But now I'm totally stuck on how to get the "if" statements working. Doh. Any pointers?[/QUOTE] I'm afraid I don't know python so my syntax is going to be based entirely on what google tells me, but it should be something like this: [code]# Initial stat value. a = randint(3, 18) # First dice roll to add if 'a' is more than 16. roll = randint(1, 6) # If 'a' is more than 16... if a > 16: # Add our dice roll onto it. a += roll # If the dice roll was a 6... if roll == 6: # Add another dice roll to 'a'. a += randint(1, 6) # Print the attribute value. print a[/code] Hopefully my comments make sense! [editline]8th August 2014[/editline] Another thought; that code I wrote was based on the pseudocode you provided. However, as far as I'm aware 3d6 does not give you equal distribution of numbers from 3 to 18, but rather it favours numbers towards the middle of the distribution. You probably want to do this: [code]a = randint(1, 6) + randint(1, 6) + randint(1, 6)[/code]
[QUOTE=BackwardSpy;45625983]I'm afraid I don't know python so my syntax is going to be based entirely on what google tells me, but it should be something like this: [code]# Initial stat value. a = randint(3, 18) # First dice roll to add if 'a' is more than 16. roll = randint(1, 6) # If 'a' is more than 16... if a > 16: # Add our dice roll onto it. a += roll # If the dice roll was a 6... if roll == 6: # Add another dice roll to 'a'. a += randint(1, 6) # Print the attribute value. print a[/code] Hopefully my comments make sense! [editline]8th August 2014[/editline] Another thought; that code I wrote was based on the pseudocode you provided. However, as far as I'm aware 3d6 does not give you equal distribution of numbers from 3 to 18, but rather it favours numbers towards the middle of the distribution. You probably want to do this: [code]a = randint(1, 6) + randint(1, 6) + randint(1, 6)[/code][/QUOTE] Awesome, that's perfect! Thanks a bunch! I'm having a pretty difficult time figuring out what's what, so every little bit helps! One more dumb question: what am I doing wrong here? [code]ps = randint (3,18) roll = randint (1,6) if ps <= 16: ps += roll if roll == 6: ps += randint (1,6) print ("Physical Strength:" [ps]) [/code] If I simply end it with [code]print (ps)[/code] it works just fine, but when I try to print that value next to the text "Physical Strength:" it is randomly picking one of the letters from "Physical Strength" as the output instead of a number! Here's what I mean. The first two were done with "print (ps)" and the second two were done with "print ("Physical Strength:" [ps])" [code]>>> 9 >>> ================================ RESTART ================================ >>> 14 >>> ================================ RESTART ================================ >>> S >>> ================================ RESTART ================================ >>> h[/code] I feel like I'm just stumbling through the dark right now. How long until this starts making some kind of sense, eh?
Codecademy has a good python tutorial that will walk you through the basics. I highly •recommend you go through the full "course" - it will give you a decent grasp of a lot of important things. [editline]8th August 2014[/editline] Also [url]www.reddit.com/r/learnpython[/url] is a great community with many people willing to help out.
[QUOTE=Big Dumb American;45626230] If I simply end it with [code]print (ps)[/code] it works just fine, but when I try to print that value next to the text "Physical Strength:" it is randomly picking one of the letters from "Physical Strength" as the output instead of a number![/QUOTE] A string is an array of characters. [] does array indexing. If you type "hello"[1], you get the character e because it's the 1st character from "hello" (h being the zeroth). [code]print ("Physical Strength:" [ps])[/code] Prints the ps-th character in the string "Physical Strength:"
I don't know where to post this but you guys are usually a real smart bunch so I'll ask here. You guys know when you are looking for an item in a folder on windows and you press a letter corresponding to what that item starts with? And sometimes it works and you instantly jump to that letter beginning. But sometimes, no matter what you press, windows makes it's *ding* sound at you that basically says "there is no such item beginning with that letter". Why does it do that? How do I make it not do that?
Yo so I'm doing a uni course on regexp and I'm really stumped on this question, It's an optional question so I thought I would reach out for some spiritual guidance Basically I'm meant to be using egrep in the standard unix shell to match only lines where n number of A's appear, followed by n number of B's and nothing else. Essentially a string like 'AAABBB' would match but 'AABBB' or 'ABABA' would not. I'm not looking for anyone to throw me the pattern itself - but is there some sort of concept I'm missing that makes this possible? Should I be using capture groups or something? I've tried a bunch of stuff and I just can't get my head around it. If I can't get it done in grep I'm able to use sed and stuff like that but the question implies its possible in egrep so that's the way i want to swing it.
I'm making a game, and I'd like my character's sprite to change so as to face the mouse. I have a sprite made for every angle, but I'm not sure how I'd write the code to change the active sprite depending on where the mouse is. I wrote a few Java classes before I started using Unity that changed the sprites depending on the last directional arrow you'd pressed, but that's about all I know how to do so far. Haven't found many tutorials explaining in a way I understood, so I figured I'd ask here! Mockup Image with the sprites arranged around the centre. [IMG]http://31.media.tumblr.com/e0fcc438425deb21a45afcd2b0612286/tumblr_n9z8oy1o6Z1tfd5wyo1_500.png[/IMG] Oh! Currently I'm using Unity and C# to code my game. I have another version I was working on in Java using Eclipse but Unity has been a more streamlined process so far.
[QUOTE=WTF Nuke;45627112]I don't know where to post this but you guys are usually a real smart bunch so I'll ask here. You guys know when you are looking for an item in a folder on windows and you press a letter corresponding to what that item starts with? And sometimes it works and you instantly jump to that letter beginning. But sometimes, no matter what you press, windows makes it's *ding* sound at you that basically says "there is no such item beginning with that letter". Why does it do that? How do I make it not do that?[/QUOTE] Does it only do it when you press a key to jump to a folder? Or does it also do it for other things? If it does it for other things it may be windows narrator in ease of access (by "it" I mean the speaking)
Anyone got any links for developing cydia apps on windows? I am only finding Mac shit.
[QUOTE=AnonTakesOver;45628125]Anyone got any links for developing cydia apps on windows? I am only finding Mac shit.[/QUOTE] [url="http://thebigboss.org/hosting-repository-cydia/submit-your-app/compile-for-cydia-submission"]Here[/url] I don't know much about Cydia, so yeah. If you want to find more just google "Compile cydia applications on windows" or something
[QUOTE=WTF Nuke;45627112]I don't know where to post this but you guys are usually a real smart bunch so I'll ask here. You guys know when you are looking for an item in a folder on windows and you press a letter corresponding to what that item starts with? And sometimes it works and you instantly jump to that letter beginning. But sometimes, no matter what you press, windows makes it's *ding* sound at you that basically says "there is no such item beginning with that letter". Why does it do that? How do I make it not do that?[/QUOTE] In my experience it's just a matter of the wrong thing having focus. I usually just click one of the files so it's selected and then press the letter and then it jumps there as expected.
Sorry, you need to Log In to post a reply to this thread.