Arfur9 Posted August 5, 2012 Posted August 5, 2012 (edited) Before I start, searching online and the forum thiis has been asked before by people hacking games, this does involve games but its for a bunch of developers tools for a game engine I'm making (the tools not the engine), I have two other tools written with AutoIt this one has just become my Nemisis, so if you want to see them first I'll gladly share, one converts 6 images to a format the game engine uses, the other is a cfg file parser and rewriter What I'm trying to do is plot a square on a image and get the coords, I made a basic one last night which just went by mouse clicks at 4 points and returned the value, the issue really is I need to be able to shrink a 2048 x2048 image and get the right values also how to isolate it just to the image, currently I'm getting the whole gui, ultimately draw lines to the points I don't want or expect anyone to do it for me, were's the fun in that! but some pointers would be great, search I've missed or an example, I found some last night but earlier versions of AutoIt The square is the hotspot were an event will happen, currently its trial and error or using a image editor kinda thing, the game engine has no GUI, in the engine it'll look like: alarmButton1 = cafeteria3:addSpot( Spot(WEST, {1536, 1164, 1625, 1164, 1625, 1290, 1536, 1290}) ) the goal is a room editor that will write a basic script and add these spots, I want to be able to swap images so you do all six cube faces and plot the spots easily its very time consuming otherwise, Edited August 5, 2012 by Arfur9 My 3D Work
Zedna Posted August 5, 2012 Posted August 5, 2012 Post what you have ... Resources UDF ResourcesEx UDF AutoIt Forum Search
Arfur9 Posted August 5, 2012 Author Posted August 5, 2012 I'm just on building the gui and image loader, I've hit the manual a bit more and I think I see what I need to do, whether I understand it is a different matter lolone part of my tool set is this, the idea is it save manually writing a bat file, basically the user sets the path to their image set (the image set is 6 cube face images). it'll queue multiple conversions. The idea of the tex file is it loads faster and better compression, but is also only readable by the engine, typically while developing a game you'd leave the imagesets as regular images the convert them on release.Anyway I'll post what I have in regards to this thread ASAP My 3D Work
Moderators Melba23 Posted August 5, 2012 Moderators Posted August 5, 2012 Hi, I was asked to look at this thread. I am perfectly happy to let it run as the OP is using AutoIt to make the tools to create the game, not interact with it during play. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Arfur9 Posted August 5, 2012 Author Posted August 5, 2012 Thanks Melba23 Game engines with no editors are really hard work so the tool set is just to make life easier, I'm cursed with a slow computer right now so can't render 2048x2048 images in a realistic time so developing these tools is my way of keeping involved and learning something new I can fully understand the twitchyness about such threads, I'm a beta tester for a renderer that has been hacked and then they have the b*lls to ask for support. My 3D Work
Zedna Posted August 5, 2012 Posted August 5, 2012 You can look at my old Radar project where I do drawing red cross over radar image by using MoveTo/LineTo GDI API. Here is my example for using Rectangle GDI API Resources UDF ResourcesEx UDF AutoIt Forum Search
Arfur9 Posted August 5, 2012 Author Posted August 5, 2012 Hi Zedna thanks for that, there seems to be a problem with the radar script, incorrect parameters in about 6 places? I'm using the current build not the beta, I'll try the built version and see what it looks like My 3D Work
Zedna Posted August 5, 2012 Posted August 5, 2012 (edited) Hi Zedna thanks for that, there seems to be a problem with the radar script, incorrect parameters in about 6 places? I'm using the current build not the beta, I'll try the built version and see what it looks like Syntax of sources is for old AutoIt 3.2.12.1 as I said in that topic!EDIT:Just look at Func MalujKriz() ; called after change of pictureMalujKriz means in English PaintCrossHair Edited August 5, 2012 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
Arfur9 Posted August 5, 2012 Author Posted August 5, 2012 Thanks, there's a lot thats really useful, thanks for the examples, there's plenty to keep me going My 3D Work
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now