Results 1 to 10 of 24

Thread: As Yet Unnamed Entry - RTS against 'the empire'

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    Wow, integrating some old code for window and control management to produce an interactive, 'dynamically generated' interface went better than expected... It still has some art and text from the old program but hey, the fundamentals are there right?

    Screenshot.jpg

    for those whom are curious, that window is made from a script file (this exact one as it where ):
    Code:
    #START#
    NX_ComplianceFlag=NX10x,NX166-S,NX166-X,NX166-W
    Visible=True
    Position.X=200
    Position.Y=300
    Id=StarInfoWindow
    Width=425
    Height=150
    BackgroundImage=data/NX166OUI/windowbackground.png
    Controls=12
    Control[1].Id=WindowName
    Control[1].X=2
    Control[1].Y=2
    Control[1].Type=103
    Control[1].Value=Star Information:
    Control[1].ControlColour.R=255
    Control[1].ControlColour.G=255
    Control[1].ControlColour.B=0
    Control[1].ControlColour.A=255
    Control[2].Id=Star_Name
    Control[2].X=200
    Control[2].Y=20
    Control[2].Type=103
    Control[2].Value=XYZ
    Control[2].ControlColour.R=255
    Control[2].ControlColour.G=255
    Control[2].ControlColour.B=0
    Control[2].ControlColour.A=255
    Control[3].Id=Star_Info_Name
    Control[3].X=2
    Control[3].Y=20
    Control[3].Type=103
    Control[3].Value=Star Name:
    Control[3].ControlColour.R=255
    Control[3].ControlColour.G=255
    Control[3].ControlColour.B=0
    Control[3].ControlColour.A=255
    Control[4].Id=Star_Info_Resources
    Control[4].X=2
    Control[4].Y=34
    Control[4].Type=103
    Control[4].Value=Resources:
    Control[4].ControlColour.R=255
    Control[4].ControlColour.G=255
    Control[4].ControlColour.B=0
    Control[4].ControlColour.A=255
    Control[5].Id=Star_Resources
    Control[5].X=200
    Control[5].Y=34
    Control[5].Type=103
    Control[5].Value=XYZ
    Control[5].ControlColour.R=255
    Control[5].ControlColour.G=255
    Control[5].ControlColour.B=0
    Control[5].ControlColour.A=255
    Control[6].Id=Star_Info_Industry
    Control[6].X=2
    Control[6].Y=46
    Control[6].Type=103
    Control[6].Value=Industry :
    Control[6].ControlColour.R=255
    Control[6].ControlColour.G=255
    Control[6].ControlColour.B=0
    Control[6].ControlColour.A=255
    Control[7].Id=Star_Industry
    Control[7].X=200
    Control[7].Y=46
    Control[7].Type=103
    Control[7].Value=XYZ
    Control[7].ControlColour.R=255
    Control[7].ControlColour.G=255
    Control[7].ControlColour.B=0
    Control[7].ControlColour.A=255
    Control[8].Id=Star_Info_Economy
    Control[8].X=2
    Control[8].Y=58
    Control[8].Type=103
    Control[8].Value=Economy  :
    Control[8].ControlColour.R=255
    Control[8].ControlColour.G=255
    Control[8].ControlColour.B=0
    Control[8].ControlColour.A=255
    Control[9].Id=Star_Economy
    Control[9].X=200
    Control[9].Y=58
    Control[9].Type=103
    Control[9].Value=XYZ
    Control[9].ControlColour.R=255
    Control[9].ControlColour.G=255
    Control[9].ControlColour.B=0
    Control[9].ControlColour.A=255
    Control[10].Id=Star_Info_Science
    Control[10].X=2
    Control[10].Y=70
    Control[10].Type=103
    Control[10].Value=Science  :
    Control[10].ControlColour.R=255
    Control[10].ControlColour.G=255
    Control[10].ControlColour.B=0
    Control[10].ControlColour.A=255
    Control[11].Id=Star_Science
    Control[11].X=200
    Control[11].Y=70
    Control[11].Type=103
    Control[11].Value=XYZ
    Control[11].ControlColour.R=255
    Control[11].ControlColour.G=255
    Control[11].ControlColour.B=0
    Control[11].ControlColour.A=255
    Control[12].Id=Star_Upgrade
    Control[12].X=2
    Control[12].Y=100
    Control[12].Width=360
    Control[12].Height=18
    Control[12].Type=101
    Control[12].Value=Star Upgrade Options
    Control[12].Action=NewWindow$data/StarUpgradeWindow.pcff1
    Control[12].ControlColour.R=255
    Control[12].ControlColour.G=255
    Control[12].ControlColour.B=255
    Control[12].ControlColour.A=255
    #END#
    Edit: Forgot to mention, dragging windows is ugly, and its clitchy but for such a short job, I'll call it progress
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

  2. #2
    Nice! Any chance of a larger screenshot? The attached one is rather small to see all the details...

  3. #3
    Quote Originally Posted by paul_nicholls View Post
    Nice! Any chance of a larger screenshot? The attached one is rather small to see all the details...
    I agree, and I've had the same outcome for my attached screen-shots too (they got downsized and blurred).

    @WILL: any chance of loosening up the restrictions for attached screen-shots?
    Hosting the image elsewhere is possible but will have other issues (dead links, no thumbnails...)

  4. #4
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    Well another screenshot with some fixed bugs, a more appropriate interface and the working dialog system for making stuff... In HD since I linked to my public file on dropbox

    Last edited by code_glitch; 13-04-2012 at 01:52 PM.
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

  5. #5

  6. #6
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    Well, after a saturday off, and taking a break from some holiday homework, I got the ball rolling for an hour and got the script execution system for the window dialogs to do stuff with the game data... Its all in the console for now, but at least its all hooked up and working from a simple right click action anywhere on the map. Enjoy



    Its kind of hard to believe I'm now going to spend most of my time making content and scripts for this to run... Oh how I hate the annoying 'language' i developed for this -_-
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

  7. #7
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25
    Nice GUI. Don't forget to draw yourself some simple units and building art.

    Quote Originally Posted by code_glitch View Post
    Edit: Just a thought, but whats the view on recycling code from your own codebase for use in the PGD entry?
    Go for it. Just don't take from others without permission and you're golden.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  8. #8
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    Well, it would look I have to say two things -
    1. This wont be entered into PGD challenge number 2.
    2. This will continue to be developed as an open source project... Things are working nicely and its giving some interesting results on how different approaches to code are working together...

    The simple fact is that I'm now around 2 weeks and a little bit of my final exams, and that consequently my time for code has decreased exponentially :/
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •