tag:blogger.com,1999:blog-30360449469560230522024-03-14T01:21:12.771-07:00A new start: programming and suchSweenhttp://www.blogger.com/profile/05674270617067845230noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-3036044946956023052.post-25953899953929936372008-04-28T17:45:00.000-07:002008-05-02T08:21:42.561-07:00PyToolkit:: the hybrid pygame and Tkinter moduleFinally, after two hard months... or at least busy months, I have finished my forst complete version of PyToolkit.py. This was created to circumvent the issue that occurs when trying to use pygame and Tkinter in the same program. You are free to download it at:<br /><br /><a href = "http://www.4shared.com/file/45723273/27347c0d/PyToolkit_840.html"> PyToolkit_8.4.0 (source code)</a><br /><br /><a href = "http://www.4shared.com/file/46166999/70d8f80e/PyToolkit-840win32.html"> PyToolkit_8.4.0 (Windows Installer)</a><br /><br />Please post any comments/questions you may have about this library. The pytk_help.py file is designed to give you a sample run through of how each class works. more to come later.<br /><br />.:Sween:.Sweenhttp://www.blogger.com/profile/05674270617067845230noreply@blogger.com0tag:blogger.com,1999:blog-3036044946956023052.post-91041107533517749062008-03-08T18:05:00.000-08:002008-03-10T06:11:20.845-07:00Beware the MonaRonaDona Virus (UPDATE 3/10/08)A little caveat for anyone who has downloaded or is considering downloading RegistryCleanFix2008. <br /><br />DON'T.<br /><br />Okay, if you already downloaded it, chances are you might have experienced an annoying pop-up in the corner of your screen regarding MonaRonaDona and the fact it is a virus. Apparently someone is pissed about something regarding human rights and they decided what better way to protest a "Human Rights Violation" than to annoy the living crap out of innocent computer users who thought it may have been a good idea to download software that would clean up their Registry.<br /><br />The repercussions of this virus so far are:<br /><br />1) lack of use of Taskmanager - a messageBox pops up stating you don't have Administrator privileges (even though you probably very well are the Administrator)<br /><br />2) Start Button doesn't say "Start" in it. My Start button still works although I've heard reports that some have lost the use of their Start button.<br /><br />3) Lack of use of Regedit - Type "regedit" in the run prompt and you get a window that flashes on for a fraction of a second then doesn't take. You can access regedit in safe mode. <b>For a while. It eventually made it to operate the same as my TaskManager where Admin privileges were needed</b> For a list of files to look for in the registry see the first link below.<br /><br />4) Internet Explorer title bar has the website name plus " - MonaRonaDona" . Inadvertantly, your homepage is now going to be a wikipedia site about Human Rights. I do't know what happened that got the author(s) of this virus so riled up but they really have some social issue they're pounding.<br /><br /><h3>UPDATE IN BOLD</h3><br /><b>Here's what I did:<br />-Delete SRVSPOOL.exe from Start/Programs/Startup<br />(I had to do it in safe mode)<br />-Check "C:\Windows\pss" for SRVSPOOL.exeConfigureStartup or something similar. Delete it of course.<br />-Edit your Registry. See sites below for tips and steps on that process.<br /><br /></b><br />Here are some sites I found useful in my hunt for eradicating this beast:<br /><br /><a href= "http://www.xp-vista.com/spyware-removal/monaronadona-removal-instructions" target = blank> xp-vista site</a><br /><font color = "ff0000">A step by step process for XP or Vista users</font><br /><br /><a href ="http://ask-leo.com/why_is_my_task_manager_disabled_and_how_do_i_fix_it.html" target = blank> Specifically about Task Manager</a><br /><font color = "ff0000"> There are probably other sites but I found this useful for how to get Taskmanager working again</font><br /><br /><b><br /><a href= "http://wiki.answers.com/Q/How_to_enable_regedit" target = blank> About Regedit</a><br /><font color = "ff0000"> I found this tip particularly useful because it sets <i>disableRegistryTools</i> to false</b></font><br /><br />As of yesterday (March 9, 2008, about 5pm EST)I finally got myself rid of the virus and it's lingering effects. It is possible that others have different experiences with what the virus wants to do. I've mentioned my symptoms. I didn't open too many of my other programs because I figured if the virus changes registry values particular to Office or something, I would rather not hunt for those values.<br /><br />May you not get malicious viruses<br />.:Sween:.Sweenhttp://www.blogger.com/profile/05674270617067845230noreply@blogger.com0tag:blogger.com,1999:blog-3036044946956023052.post-32008104152192070832008-02-01T09:11:00.000-08:002008-04-28T17:51:22.313-07:00Widget ClassSo you're programming a game or doing something using pygame. You have need to input a string so you can perhaps save a file or enter your new high score. How does one do this without using <font color = "8800cc">input </font> or <font color = "8800cc">raw_input</font>? Well if you have knowledge of the Tkinter library and the widgets it provides you may also know that it seems difficult to make Tkinter work with pygame (or at least that is my experience... maybe I just don't know how to focus a Tkinter widget). I have started work on some widgets like Entry and Label and Button. It uses pygame to draw the widget and the class for each of these has parameters that are defaults but it requires the class to be called with screen and background instances, which isn't a huge deal, it's just helpful to know. <br /><br /><br /><h3>UPDATE</h3><br />I have updated my widget.py file to include buttons and a label. Go <a href="http://mcsweenus.4shared.com/">here</a> to see the new and improved version. There will be regular updates as Idubug and meticulously include more features. I may just limit this library to Entry, Button and Label until such a time as I need more things like menus and such.<br /><br />.:Sween:.Sweenhttp://www.blogger.com/profile/05674270617067845230noreply@blogger.com0tag:blogger.com,1999:blog-3036044946956023052.post-55152975076123221832007-12-30T12:49:00.000-08:002007-12-30T13:22:46.485-08:00Invalid Token ErrorsI encountered a problem today. It happened when I was creating a map for one of my 2d engines and I had something that looked like: <br /><font color = "d65a00">return[[08,07,07,07,07,07,16,07,07,07,07,07,07,07,07,06],</font><br /> <font color = "fcfcfc">_______ </font><font color = "c00000">^<br /> invalid token</font><br /><br />Upon further study, I found that Octal numbers are represented by 0 then a number from 0 - 7. Since the symbol 8 and 9 don't represent anything in an octal numbering system python returns a SyntaxError: invalid token. This causes a headache for me because I need to have my maps line up under one another:<br /><br /><font color = "d65a00">[08,07,07,07,07,07,16,07,07,07,07,07,07,07,07,06],<br /> [01,00,00,00,14,10,22,00,00,00,00,00,00,00,00,05],<br /> [01,19,07,06,09,00,00,00,00,00,00,08,00,00,00,05],<br /> [01,00,00,01,09,00,00,00,00,00,00,08,00,00,00,05],<br /> [01,00,00,01,11,10,10,19,12,00,00,09,09,09,00,05],</font><br /><br />But to omit the leading "0" causes this:<br /><font color = "d65a00">[8,07,07,07,07,07,16,07,07,07,07,07,07,07,07,06],<br /> [01,00,00,00,14,10,22,00,00,00,00,00,00,00,00,05],<br /> [01,19,07,06,9,00,00,00,00,00,00,8,00,00,00,05],<br /> [01,00,00,01,9,00,00,00,00,00,00,8,00,00,00,05],<br /> [01,00,00,01,11,10,10,19,12,00,00,9,9,9,00,05],</font><br /><br />messy, hunh?<br /><br />To rectify the problem, I used a "." after 8 and 9 to fill up the spaces. It lines up well and if you wanted to be consistent, all your single digits can be done that way. <br /><br /><font color = "d65a00">[8. ,07,07,07,07,07,16,07,07,07,07,07,07,07,07,06],<br /> [01,00,00,00,14,10,22,00,00,00,00,00,00,00,00,05],<br /> [01,19,07,06,9. ,00,00,00,00,00,00,8. ,00,00,00,05],<br /> [01,00,00,01,9. ,00,00,00,00,00,00,8. ,00,00,00,05],<br /> [01,00,00,01,11,10,10,19,12,00,00,9. ,9. ,9. ,00,05],</font><br /><br />*NOTE* this "." fills up the spaces only on the Python Editor and basic textpad files. in Word or some other higher level format the "." is significantly smaller widthwise and will not line up with other items vertically. I've never used Word to make something like this, but I'm just sayin'.<br /><br />So for those who have run into this exception and it's driving you nuts, I hope this was a help!<br /><br />Cheers!<br />.:Sween:.Sweenhttp://www.blogger.com/profile/05674270617067845230noreply@blogger.com2tag:blogger.com,1999:blog-3036044946956023052.post-50462276342441616352007-12-29T18:51:00.000-08:002008-12-09T12:22:34.070-08:00New Developments IHere it is! Something new!<br /><br />...Kind of...<br /><br />I now have an updated version of "SpriteMaker"! In this version I got rid of the annoying prompts at the beginning which ask for the tile size and the filename you are planning on saving the graphic as. I figured it made more sense to input a filename when saving and loading. So I did just that! Speaking of loading, I now have a means to load the graphic into the tile grid and in the window in the corner. Graphically, nothing has changed. That will be for "SpriteMaker2.0". This one is only version 1.2.<br /><br />So, if you are a masochist or enjoy meticulously plotting little dots on a surface to make a 10:1 scale graphic, then this is the application for you! If not, Adobe Photoshop(r) is where it's at for you, my friend.<br /><br />here's a little cutie I made for a friend of mine's game. Kinda tiny, he is...<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmfA8hpUNvuMP5BMsqh7qaWSTCWw4zgcj52xXOt7vfRMPemedCSOJzgOYKV8KOAxwRql5nzxHQ7M8fwaYP-1aNYeXusn3OIxaF3dfIrZNG0TrP0d1Qz6F7bKAM5US6VUNsmAhR3CKdwbKk/s1600-h/fireEye.bmp"><img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmfA8hpUNvuMP5BMsqh7qaWSTCWw4zgcj52xXOt7vfRMPemedCSOJzgOYKV8KOAxwRql5nzxHQ7M8fwaYP-1aNYeXusn3OIxaF3dfIrZNG0TrP0d1Qz6F7bKAM5US6VUNsmAhR3CKdwbKk/s320/fireEye.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5149595378050666946" /></a><br />Like I said, most of this stuff is in it's beginning stages and I will probably (or definately) make more defined graphics. I feel my color changes are too subtle and the resolutions on monitors these days is a lot more magnanimous than they were in the late 90's when I was doing 20x20 sprites and tiles on QBasic. *phew* That octoganal fire eyeball is a 30x30. Not <i>real</i> big.<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhLweihNgG5zd2auYos9XkRsSpyf8gY7_Kuc08QYMwRkmXnj6phki86LagvjJt6B1A94bM4rm3oPDmmU6r8jMak92rKk39L3fzO8Ceuyl-8iN9xDY2VTumkjIxBmsLSLGs7DEqgCUrvqXV/s1600-h/Sample2.bmp"><img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhLweihNgG5zd2auYos9XkRsSpyf8gY7_Kuc08QYMwRkmXnj6phki86LagvjJt6B1A94bM4rm3oPDmmU6r8jMak92rKk39L3fzO8Ceuyl-8iN9xDY2VTumkjIxBmsLSLGs7DEqgCUrvqXV/s400/Sample2.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5149598942873522642" /></a><br />Anyhow, there will be more news soon. And something maybe even playable. If anyone is interested in my source code, I'd gladly email it to you, because I don't exactly know how best to upload to an FTP site or something...<br /><br />Until then!<br /><br />Cheers!<br /><br />.:Sween:.Sweenhttp://www.blogger.com/profile/05674270617067845230noreply@blogger.com0tag:blogger.com,1999:blog-3036044946956023052.post-62998839970917537922007-12-22T18:34:00.000-08:002007-12-22T18:42:47.354-08:00The Christmas BreakMy apologies to any who have been looking for updates a bit more regularly. I have yet to settle into a routine where I am producing regularly. I must say that my Bingo Card Maker is in use right now as I am printing 68 cards for folks at my church.<br /><br />My next major project is going to include some casual games for my friend <a href="http://www.robinwhiteonline.com/skitzoman/index.htm">Whitey's SkitZoman</a> website.<br /><br />I'd be on a look out for that! It would be fun to be a full time video game programmer but I need to make sure I can make money.<br /><br />I hope this post find everyone healthy and in good spirits and I do wish you all the very best Christmas<br /><br />Cheers<br />.:Sween:.Sweenhttp://www.blogger.com/profile/05674270617067845230noreply@blogger.com0tag:blogger.com,1999:blog-3036044946956023052.post-27089757396041629422007-11-24T19:11:00.000-08:002008-12-09T12:22:34.675-08:00Finished Project #2:<h2>A Mock Paint Program</h2><br /><br />Now, this project is by no means an Adobe Photoshop but I can use this for making the tiles and sprites(characters) that would be found on some game surfaces... well, on old systems like SNES and such. I may someday delve into the world of 3D animation and all that but let me take it one step at a time, please!<br /><br />You can see the screen shot of my new program right here:<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgTQmYyd-tiAAWrqhyB0-n2Wd4e1OFN2WfORUS762jcStAfPZ80JifcqkOpXbLH4Fl5zLTMzkuRywYdo1cTMnBFIjH4HkL9J4YXiKKWwKbji63lyc4bEDebcJJ5u5zdCzYTW-qJmgzKcSF/s1600-h/Screenshot.bmp"><img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgTQmYyd-tiAAWrqhyB0-n2Wd4e1OFN2WfORUS762jcStAfPZ80JifcqkOpXbLH4Fl5zLTMzkuRywYdo1cTMnBFIjH4HkL9J4YXiKKWwKbji63lyc4bEDebcJJ5u5zdCzYTW-qJmgzKcSF/s320/Screenshot.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5136612258926472370" /></a><br /><br />I just threw something together merely for the fact I can show that I use a grid to draw the tile up in the upper right corner. You can use the left and right arrows to switch between the individual RGB values and use up and down to alter that value. I also have it set up so you can get a color at a pixel in the grid, or you can fill the grid and tile with selected color.<br /><br />It's a little cumbersome but it is just another small victory in my quest for becoming a freelance game programmer!<br /><br />So it may be a while before I post anything of great accomplishment for a little while...<br /><br />Until Then:<br />CheersSweenhttp://www.blogger.com/profile/05674270617067845230noreply@blogger.com2tag:blogger.com,1999:blog-3036044946956023052.post-70290041235033902082007-11-20T06:13:00.000-08:002007-11-20T06:18:53.606-08:00New Project :: A Sprite/Tile makerRight now I need something to create GIFs or BMPs to use in future games. So why not expand my own horizons and make it myself. The features will potentially include what size the sprite or tile can be. They are usually square so I will make them that way.<br /><br />This is mostly an update of what I am doing right now. When I finish it, I hope to be able to have a link to download the finished product.<br /><br />Until then:<br /><br />CheersSweenhttp://www.blogger.com/profile/05674270617067845230noreply@blogger.com0tag:blogger.com,1999:blog-3036044946956023052.post-14571769902434938402007-11-16T20:28:00.000-08:002008-12-09T12:22:34.953-08:00Success! 1st Program Complete!<h2><COLOR="0505FA"> Random Bingo Generator!</h2><br /><br />Here it is! After much trial and error and getting ever so much more intimately acquainted with various code, I have completed my first real project on <b>Python!</b><br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpH9dZtDyi2Ur8xdz7Vs-CyMl6FRdoz5rIvK-T9liOF71y2IZvTbQoSmlMjXpznHie2aIVKEIfRBiW6Tg7AYh5n3d3OKu8-6IDHuPDTl8UqfogwfKuC0fpKI8tXx_RrFv1hlvU4jUjCj92/s1600-h/testCard13.bmp"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpH9dZtDyi2Ur8xdz7Vs-CyMl6FRdoz5rIvK-T9liOF71y2IZvTbQoSmlMjXpznHie2aIVKEIfRBiW6Tg7AYh5n3d3OKu8-6IDHuPDTl8UqfogwfKuC0fpKI8tXx_RrFv1hlvU4jUjCj92/s320/testCard13.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5133664353520836034" /></a><br /><br />As you can see it is pretty basic but it serves its purpose. Later versions will have a title across the top. I am pretty excited about how it all came together. Now to print a bunch of these off and laminate them at Kinko's!<br /><br />Be on the lookout for my next project, a 3D game interface and/or some 2D scrolling action bit.<br /><br />Until Then:<br /><br />CheersSweenhttp://www.blogger.com/profile/05674270617067845230noreply@blogger.com1tag:blogger.com,1999:blog-3036044946956023052.post-46857270369414534752007-11-15T04:32:00.000-08:002007-11-15T05:07:12.768-08:00Now for Something Completely DifferentAs we all know, I lack the habit of blogging regularly. Maybe that will all change now as I am seeking to change the world... or not.<br /><br />I have recently been flirting with python-- an object-oriented programming language--(whatever that means...) and I hope to start programming video games again as a hobby. For those of you who know me, you may not have ever known that I could program games... well, back in the day I was familiar with QBasic and made the start of an RPG which I called "<u>Bloodshed</u>". I spent months drawing sprites and backgrounds and writing program which made those sprites and backgrounds move and do stuff that only sprites can do... which... they can't do anything unless you tell them.<br /><br />Abbreviated history aside, I have returned today for the sole purpose of sharing with the world my new creation...<br /><br />--a random bingo card generator!--<br /><br />"Why?" you may ask? I ask you, "Why not?" <br /><br />Bingo is a great way to pass time in boring staff meetings, church services... anything that you have to sit through in which technical jargon and cliche phrases run rampant. This is no regular bingo where numbers are used. This bingo, as you should have guessed, is the kind with words on a grid. <br /><br />Though it may seem that my intent for making was purely for my entertainment (and the entertainment of others) it is actually a useful tool for paying attention to what is actually being said. Kind of like the days in McMillan's classes where I would keep track of how many times he would say "In any case" in any given class, the game actually helped me get higher grades because I had to actively hear what was being said.<br /><br />All that being said, be on the lookout for my next post which will (hopefully) provide a screenshot of my new product and if any are interested, you can send me a list of words that can be generated onto a 5 x 5 grid.<br /><br />Until then:<br />Cheers<br /><br />SweenSweenhttp://www.blogger.com/profile/05674270617067845230noreply@blogger.com2