Single-Player Frontend WIP

Single-Player Frontend WIP

Please use this forum to set up matches and discuss played games.

Moderator: Moderators

Post Reply
User avatar
Slamoid
Posts: 237
Joined: 25 Jan 2005, 19:23

Single-Player Frontend WIP

Post by Slamoid »

I'm working on a quick and shoddy front-end for Spring Single-player.

The first version will be all 2-d, with a 'Dynaverse' (Think offline PW), and eventually random mission scripting with RPG elements. Eventually, I want to include suppourt for AA and FF at once, AA for ground combat, and FF for space combat, intercepting fleets en rute to planets and the such, even building orbital defenses and GG jammers.

But first, I'm just trying to get the d**n thing to work right. :P

I'll post pics when it's working. So far it's intellegently creating the start script files and linking them to the AI DLLs I want it to. Next up is the graphical interface (WIP as I type) and then the map loading. If anyone has any questions/suggestions, feel free to post them.

BTW, is there any easy way to know if the local player won the last game, so I don't have to have it search teh entire game log? TY.
CrowJuice
Posts: 88
Joined: 13 May 2005, 11:01

Post by CrowJuice »

YAY!! YAY!!! YAY!!!!!
User avatar
Min3mat
Posts: 3455
Joined: 17 Nov 2004, 20:19

Post by Min3mat »

i really wanted OTA missions first oh well gl :)
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Aha, I can add to the NTAI dll itnerface any bits you need. I've bene thinking I might add a bti that returns a html formatted string with NTAI the version number and a description. I could also rig it to log to a second file wether it won or not. Another possibility would be looking at the demo recording.

This all seems similair to my Spring: Total War diea, but that thread got hijacked so i gave up.
User avatar
Decimator
Posts: 1118
Joined: 24 Jul 2005, 04:15

Post by Decimator »

Perhaps it would better to use Caydr's GEM for the space combat instead?
User avatar
Slamoid
Posts: 237
Joined: 25 Jan 2005, 19:23

Post by Slamoid »

Alantai Firestar wrote:Aha, I can add to the NTAI dll itnerface any bits you need.
Actually, I could use a little help. Could you add a little bit that if the player wins, it creates a text file called PlayerWin.flg, and if player looses it creates one called PlayerLoose.flg? That would be most helpful, as I can't think of any other way than loading the whole game log and looking for what word is near the player's name.

Progress so far:

  • It is dynamically creating scripts
    It is loading Spring
    It has different planet sprites for different maps
    It is randomly loading different planets
    It can load different mods
    It is compiling to ONE small file

    It is/will not load Spring's data files
    It is/will not detect new maps
    It is not making it's own missions yet
    It is does not have any strategic/RPG elements yet
    It is not randomly naming the different planets yet (damn string variables)
As promised, a worthless screenshot. (Can somone give me a new cursor JPEG? I'm lazy. :roll: )

Image

[edit]Oh yeah, 2 things: I'd DEFINATELY use Caydr's mod when he gets it done; and the maps I've imported so far: (Feel free to suggest more)
  • Small Devide
    Castles
    Blue Planet
    The Cold Place
    Core Prime Industrial Area
    Comet Catcher
Last edited by Slamoid on 03 Dec 2005, 20:13, edited 1 time in total.
User avatar
jcnossen
Former Engine Dev
Posts: 2440
Joined: 05 Jun 2005, 19:13

Post by jcnossen »

Maybe it's better to build a SP starter with the new gui components, so it's integrated into spring,
but it's nice to see someone working on this anyway 8)

EDIT: Nice, I see that it's going to be more than just a Singleplayer AI launcher, so maybe a seperate app is better :)
User avatar
Aun
Posts: 788
Joined: 31 Aug 2005, 13:00

Post by Aun »

Slamoid wrote:
  • Small Devide
    Castles
    Blue Planet
    The Cold Place
    Core Prime Industrial Area
    Comet Catcher
Mountain Siege! It's very hilly and can be won with unusual tactics :)
User avatar
Min3mat
Posts: 3455
Joined: 17 Nov 2004, 20:19

Post by Min3mat »

Painted Desert remake
Comet Catcher
Greenhaven
Mars
River Dale and its parts
Flooded Desert
Sands of War
Plains and Passes
Cliffdown
Volcano Island
to name a few
User avatar
Caydr
Omnidouche
Posts: 7179
Joined: 16 Oct 2004, 19:40

Post by Caydr »

Not sure how well g/e/m will work for this sort of thing. The units have nothing to do with the TA universe and, at least in the initial release, there will probably only be one side.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Actualyl nwo i see that adn what zaphodsaid It wouldnt be that hard to make ti start a new game using the player with a globalAI helper that showed an itnerface. That way you could sue all the graphcis the game has and have big real 3D planets rotating etc, adn stars etc.

The necessary tools to get a GUI working on the map are there, I cna only think that there'd be need for an exit command in the AI interface toher than NTAI's fabled ".Crash" command.

I'll make the next version of NTAI write a crash.flg, then if it ends it'll write a second file either playerwin.flg or playerlost.flg.

If you do decide to go for Ingame GUI or you use 3D planets, there are hundreds of 3rd party free textures for ST:Armada 2 planets that can just be applied to a sphere ro ellipse for a decent planet affect.
User avatar
PauloMorfeo
Posts: 2004
Joined: 15 Dec 2004, 20:53

Post by PauloMorfeo »

Slamoid wrote:... (Can somone give me a new cursor JPEG? I'm lazy. :roll: )
...
Try posting a request in the Art forum!? (even though you shouldn't keep high expectations)
User avatar
Slamoid
Posts: 237
Joined: 25 Jan 2005, 19:23

Post by Slamoid »

Well, progress is coming along fairly well. NTAI will be the only one suppourted for now, and I will release the source code.

The good/bad news: It's not C++. It's not even a dedicated programming language. It's built in Game Maker 4, a free hobbyist programming suite. Honestly, I'm amazed it got so far! It's almost a whole dynaverse already. There's alot to be implamented, and it's EASY to program, so I'll just release a beta + source code soon. I hope everyone enjoys it!!

Beta 0.01 to be released soon. It chooses a map for you and launches spring. Framework is there for *FAR* more, but I'm loosing interest, so I'd better let somone else take it from here before I delete it. I hope somone looks into the builder, as it reads/writes text files easily, so you can also dynamically create LUA missions (as was my intention), but I don't know how to launch Spring's LUA missions from prompt.

Good luck. :lol:

PS: You can download the 4.3b version I'm using free from here. I reccomend trying it first.
User avatar
Maelstrom
Posts: 1950
Joined: 23 Jul 2005, 14:52

Post by Maelstrom »

Well once you get a basic version working, I will be happy to port it to VB. More people will probably know that language. Unless someone wants to port it to C++ or something.

Anyways, once you get it working ill try and clone it into VB, if you dont feel like working on it anymore.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

hmmm, I think i know a way you can get along without any NTAI support.

The game saves all the console emssages to InfoLog.txt. This includes messages saying a player has bene killed and which player that is. You can just search for ti and hey presto you knwo wetehr a player has won or lost. You could fidn ti useful to know what the player had left at the very end though if nubmers of untis matters affectign the dynaverse thing....
User avatar
Comp1337
Posts: 2434
Joined: 12 Oct 2005, 17:32

Post by Comp1337 »

if we put our 1337 skills to this one, we could get a boneyards-style interface, that would seriously rock :). it could change mods depending on where the battle takes place, and what mods are available, etc (AA, FF, XTA).
Post Reply

Return to “Ingame Community”