Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dune2 mod #3274

Closed
xan2622 opened this issue May 12, 2013 · 75 comments
Closed

Dune2 mod #3274

xan2622 opened this issue May 12, 2013 · 75 comments

Comments

@xan2622
Copy link
Contributor

xan2622 commented May 12, 2013

I know there are several open-source projects about Dune2 but it would be cool to be able to play it with OpenRA too, with a mod.

The mod could have some enhancements like a checkbox to enable/disable the multiple units selection.

This way, players who want to keep the original gameplay as it was, could still enjoy the mod.

Links:
http://forum.dune2k.com/forum/12-dune-ii/
http://dunedynasty.sourceforge.net/

Usuful tools:
http://forum.dune2k.com/topic/19752-list-of-dune-ii-editing-tools/
http://duneii.com/downloads/

@Mailaender
Copy link
Member

See Open Source Game Clones for already existing mature alternatives with various attempts to modernize or closely emulate the original gameplay.

@ghost
Copy link

ghost commented Dec 1, 2013

i would also like to see a "Dune 2" mod !

most of the open source clones are "crap" .... see http://osgameclones.com/#Dune%202-clones

if someone feels like , he want to start it , i can help with graphic stuff , fixing frames , new content ...

@pchote
Copy link
Member

pchote commented Dec 1, 2013

playtest-20131130 adds support for the dune 2 shp format (but it doesn't work on a couple of files), and #4193 adds support for the pak containers.

This is enough for anyone to build out most of a dune 2 mod, and we can add extra file formats once they are needed.

@Mailaender
Copy link
Member

@xan2622
Copy link
Contributor Author

xan2622 commented Dec 1, 2013

Here is a possible dialog.png file for this Dune2 mod (it's just a test...)
Maybe the blue colortheme would be better..

screenshot003

Available here: https://github.com/xanax/OpenRA/tree/Dune2

@Mailaender
Copy link
Member

Looks like you perfectly captured it.

@ghost
Copy link

ghost commented Dec 2, 2013

ill pump out a different dialog , tbh ... this looks horrible (regardless if thats the original graphics)
that yellow is a eye - killer ...

@ghost
Copy link

ghost commented Dec 2, 2013

Original :
d2original

my mockups :
dune2black
dune2blacklog
d2

@ghost
Copy link

ghost commented Dec 2, 2013

A 90% complete GFX pack of Dune 2
http://arrakis.dune2k.com/downloads/D2TMGFXPACK.zip

this here is the main site :
http://arrakis.dune2k.com/downloads.html

@xan2622
Copy link
Contributor Author

xan2622 commented Dec 2, 2013

that yellow is a eye - killer...

I agree.

I don't even know why I didn't think of this menu.. (your menu).
I will try make a new dialog.png file that looks like your mockups.

Problems:

  • I don't know how to display a background image behind the menu (in OpenRA, it's the shellmap or a black color)
  • I don't know how to have a font like that (I have this small font but I mean: the black shadow)

Great mockups. Great ideas.
Thanks JOo.

@Mailaender
Copy link
Member

@ghost
Copy link

ghost commented Dec 2, 2013

pchote said , we could probably write a parser for the font ...

@Mailaender
Copy link
Member

If you two want to get this going I suggest you start looking at the asset browser and set up some sequences and adapt the rules. Use https://github.com/Mailaender/OpenRA/compare/dune2-pak-exploring as a basis.

@xan2622 xan2622 added the bounty label Mar 16, 2014
@DanAE111
Copy link

DanAE111 commented Apr 3, 2014

So after some looking into this we still need a few things before we can really get a usable mod together.

Possibly more but those besides music are what important to get something rolling.

@chrisforbes
Copy link
Member

Format80 is already supported -- C&C and RA use it.

On Thu, Apr 3, 2014 at 6:24 PM, Danny Keary notifications@github.comwrote:

So after some looking into this we still need a few things before we can
really get a usable mod together.

Possibly more but those besides music are what important to get something
rolling.

Reply to this email directly or view it on GitHubhttps://github.com//issues/3274#issuecomment-39413896
.

@DanAE111
Copy link

DanAE111 commented Apr 3, 2014

Oh ok, well there is some information on tha thread page 2 onwards about the layout of the ICON.MAP and ICON.ICN files

@Mailaender
Copy link
Member

Mirrored facings is already supported if you mean counter-clock-wise turning of units in the sprite sequence. I added it for Dune 2000.

@Nyerguds
Copy link

Nyerguds commented Jul 9, 2014

@Micrographics most of the open source clones are "crap" - odd statement, especially with that link as reference. Only one of the items in that list is actually a 'clone'. OpenDune is a complete source decompilation of the original game with minor code fixes, meaning its gameplay is exactly the same as the original game. And Dune Dynasty is a rather excellent enhancement of OpenDune, and thus also not a clone.

@JackKucan
Copy link

I've been incredibly ill lately. I'll get back to work on this when my guts are doing better.

@ghost
Copy link

ghost commented Sep 6, 2014

@Nyerguds check out "Dune 2 The Golden Path"
(the multiplayer balancing might be a little bit weird , but this is basicly how i would imagine dune 2 for openra ... atleast visually ... sadly almost everyone dont want the exactly same look as the original , so i think this would be the best option (golden path similar) along with our own multiplayer balance (or not)

im open for new/different ideas

@Nyerguds : ive forgot that , maybe you just want to GRAB THAT ticket ... and make that dune 2 for OpenRA ... and just make it like you want it to be :)
that would be pretty awesome

+im sry for the "open source clones are crap - statement" .... sometimes my fingers are faster then my brain :/

@Mailaender
Copy link
Member

@JackKucan We did not know you started to work on this in the first place.

@Nyerguds
Copy link

Nyerguds commented Sep 6, 2014

@Micrographics Personally I'm perfectly happy playing Dune Dynasty. Don't see why I'd need to involve the OpenRA engine in that :)

@ghost
Copy link

ghost commented Sep 7, 2014

@Nyerguds We could play it in Multiplayer against each other :D

Yeah , i know theres probably allready enough Dune2 projects including multiplayer ... but , integrated in OpenRA it would have alot of support (from alot of competent people) and here it could stand the test of time , easy map making and sharing ... we probably get more people to play it , since they just have to switch mods ... and we just grab all the dune2 fans out there , and say : install and play it !

think of all the benefts , custom made maps , new missions if you wish to... for special gameplay . with more content etc.
all i wish is , some fanatic dune2 fan ... starting this project ... to keep sure it plays like the original (with some exceptions/enhancements probably) ...
i know , youre not really a fan of OpenRA ... :(

@Nyerguds
Copy link

Nyerguds commented Sep 7, 2014

@Micrographics

i know , youre not really a fan of OpenRA ... :(

Well, yes and no... I admire the work that's gone into it, but I lament the fact it was never intended to reproduce the original game mechanics, and will thus never feel anything like the games it's supposed to be modelled after. I prefer researching the actual game instead; for instance, I recently figured out why the green on SHP files is used as unit shadow. And no, it's not hardcoded. Not in C&C1, at least :)

Anyway, I'm getting off topic here. As always, I'm definitely willing to provide internal info on Dune II for the project. I have made an exe editor that can dump a rules.ini for Dune II with all of its internal stats, including units, structures, terrain, houses, actions (unit commands), voices, and some more. You can find the ini dumps for the different versions of the game here:
http://nyerguds.arsaneus-design.com/dune/dune2rules/
Specific info on the things editable in the editor can probably be dug out of the original dev thread:
http://forum.dune2k.com/topic/19114-dune-ii-editor-with-107-support/
(sadly locked by the forum's automatic archiving system)

@evgeniysergeev
Copy link
Contributor

Thanks a lot for detailed comments. I'll try to load from map file. Just want to know, why everybody say that creating sprite loader is better than creating convertor/extractor from original files to shp.
By my mind, I can extract images from DUNE.PAK, apply diffs that fix color problems, enhance graphics ( I said that I want scaled x2 images, without such modifications it will not look very good. pixels will be very big). arrange sprites as it should be to fix sequences problems(like with harvester in video above).

The easiest and perfect look way is to just use already extracted images(link to gfx above), modify and create .shp files.
The hard way is to extract from original files and apply modifications. Looks like need to implement hard way, but only because it is not legal to distribute original graphics.

About implementing sprite loader. As I can see, Sprite loader receive stream object. but as explained earlier, need two streams, one for .map and one for .icn file. At this moment, it is not very clear for me, how to implement this. read .icn file in ParseFrames for .map file or read .icn before .map and have some reference then loading .map file. Or modify core loading functions and "hardcode" this.

@TheRaffy
Copy link
Contributor

TheRaffy commented Sep 9, 2015

These details can be overwhelming. I think it's now a principle thing. OpenRA seems to already support alot stuff like the "dune .shp" and the .pak files. This work could be seen as waisted time, if we bypass that with a graphically approach. Even when it is much more easy to understand how to do it graphically. But in the case of maintainability, expandability or accessibility the RA.shp file will not be as a bad choice as we might think, due to tools like the open ship builder. But in the other hand there are maybe already modifided original .shp files, or modified units out there.

@evgeniysergeev
Copy link
Contributor

Thanks guys

I found "Doon Lunacy" library at the link to forum.dune2k.com, that @Nyerguds share earlier in this thread. I think I can port it to c# sprite loader.

so don't need to modify the core engine code (although we would probably accept it into the core project if you wanted to file a PR with it).

Modifications in SpriteLoader.cs will need to allow SpriteLoaders load additional streams. currently TryParseSprite function accept only one stream.
I decide to create ISpriteLoader2 interface for Dune2 sprite loader.

public interface ISpriteLoader2: ISpriteLoader
{
        string GetLinkedFileName(string filename);
        bool AddLinkedStream(Stream s);
}

and modify SpriteLoader GetFrames function to work with both ISpriteLoader and ISpriteLoader2.
let me know if you can provide better way for loading dune2 sprites from two files.

@pchote
Copy link
Member

pchote commented Sep 10, 2015

A simpler (but a bit more hacky) approach would be to have your icn parser open its own stream for the .map file, and then close it once it is done (before returning). All the frames from a sprite file are loaded up-front, so there aren't any performance concerns related to repeatedly opening and closing streams.

@evgeniysergeev
Copy link
Contributor

I like, how flexible is OpenRA sources. don't want to use any "hardcoded" filenames or constants in it.

@Unit158
Copy link
Contributor

Unit158 commented Sep 10, 2015

As flexible as you make them, really.

@evgeniysergeev
Copy link
Contributor

#9318

@xan2622
Copy link
Contributor Author

xan2622 commented Sep 11, 2015

Hi evgeniysergeev.
Thank you for working on this Dune 2 mod, your contribution is really appreciated.

It would be nice if you joined us on our IRC channel : http://www.openra.net/community/.

We, (contributors and developers) usually discuss about OpenRA in this chatroom.
It would be interesting to be able to "talk" to you there.

@ghost ghost changed the title Dune2 mod [$45] Dune2 mod [$80] Sep 12, 2015
@ghost ghost changed the title Dune2 mod [$80] Dune2 mod [$180] Oct 9, 2015
@pchote
Copy link
Member

pchote commented Oct 9, 2015

I'm all for adding the file format support needed for an outside mod to build their own D2 clone on top of OpenRA, but expecting us to maintain and ship our own version of it is unrealistic. There are already several good d2 clones, but the bounty is getting large enough that somebody might try to cash in on it and then leave us to maintain it in perpetuity, which is very unfair on our small development team.

I'm going to close this ticket now because bountysource doesn't let us restrict bounties on individual tickets. @evgeniysergeev and others, please feel free to open new tickets for any sub-features that you need to build your own d2 mod project.

To the backers: You should be able to claim the bounties you have placed on this back from bountysource.

@pchote pchote closed this as completed Oct 9, 2015
@evgeniysergeev
Copy link
Contributor

@TheRaffy
Copy link
Contributor

#9580 That's my feature list of the Dune2 mod

@penev92
Copy link
Member

penev92 commented Nov 18, 2015

You should probably talk to @evgeniysergeev about moving that list to his repo - https://github.com/evgeniysergeev/OpenRA as he is the one working on the mod. Then people could place bounties there if they want to.

@xan2622
Copy link
Contributor Author

xan2622 commented Nov 18, 2015

The $180 bounty is still valid.

@SoScared
Copy link
Member

SoScared commented Jan 29, 2016

Letting you know that in the event Dune mod for OpenRA happens, I'll be make a short announcement/trailer video for it. Mixed soundtrack: https://www.dropbox.com/s/15p66bz6nchfejs/Dune%20II%20OpenRA%20Makeover-incomplete%20-%20Kopi.mp3?dl=0
*fixed link ...again :)

@yaaaaa
Copy link

yaaaaa commented Jan 29, 2016

SoScared, Error (404)

@xan2622
Copy link
Contributor Author

xan2622 commented Jul 22, 2016

I have started to think of an interface for the Dune2 mod.

#3789 might be required for a Dune2 UI (if we want its interface to feature these buttons by default).

Image of Dune2

But for my Dune2 UI proposal, I would prefer the Order Palette (attack, move, retreat, guard) not to be displayed by default, but only after units have been selected). So unlike the original Dune2 UI (the screenshot above), the order palette would appear below the production palette (for example).

IRC log (pchote's idea is really interesting):
http://logs.openra.net/?year=2016&month=06&day=15#18:52:22

@Micr0Bit
Copy link
Member

Micr0Bit commented Jul 22, 2016

thought i should post my sketch here ... this is to show what i had in mind about how to use the elements/colors from the oldschool interface ( just an idea , im still open for different designs)

2gvap2h

@TheRaffy
Copy link
Contributor

Hey, in my opinion buttons for orders (attack or move,..) are antiquated and should be avoided at all costs. Standards did not establish without purpose. Compare it to the single unit selection. Do you really like to use such old standards? There's no deeper scene in using old standards.
Plz, don't create such order buttons.

nice sketch @Micr0Bit.

@SoScared
Copy link
Member

SoScared commented Jul 23, 2016

Agree with @TheRaffy about the attack/move buttons but I'd be super excited about using the classic build options where everything is built in the separate window. Might be a bit outdated but it's at the crux of what Dune 2 was about - environment. This plus the click-and-order 1 unit at a time made Dune 2 very slow paced RTS, almost turn based even - a modern version might risk streamline the game a bit hard, phasing out the few qualities it had over its' successors. IMO this needs to addressed this if people are to enjoy a D2 mod.

@MustaphaTR
Copy link
Member

Sketch looks good but i'm not sure if we really want toggle power on d2. Also what about the text box? I really like how it shows percent fullness of harverster here. Also d2 had subtitles enabled when sounds disabled. (I used them because seeing text is easier than hearing, especially for Death Habd Launched notification.) Do we plan to implement these?

About 1 unit selection and command buttons. I'm fine with them. I also agree with SoScared that full sized building UI can be good. Also if we are not gobna go with that, we should go like TD mod to allow ever stucture work seperately. IIRC this is how d2 works.

@TheRaffy
Copy link
Contributor

Well, in the end any working HUD is better than no one :D
So, for me I like that old design. But I also think the active developer, who is doing stuff, should always have the last word. We aren't much, who care about this mod and I'm happy about any steps towards a more complete d2 mod. That means I changed my mind, please do what you think is the best, motivates you the most and is easy to accomplish.

@Micr0Bit
Copy link
Member

Micr0Bit commented Jul 24, 2016

@Mailaender Mailaender removed the Bounty label Nov 10, 2016
@Mailaender Mailaender changed the title Dune2 mod [$180] Dune2 mod Nov 10, 2016
@Mailaender
Copy link
Member

See https://github.com/OpenRA/d2 now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests