Support for demo versions?

It’s possible, look for my ban-mod as example.
By the way, where this demo we are talking about can be downloaded?

Here for example:
fileplanet.com/56293/50000/f … -III-Demo-[Mac]

Yeah that would certainly work. Now we just need a way to find incomplete assets in some automated way. Or we need to make CAnimation not crash when assets doesn’t exist.

Again thanks for pointing out to the Mac demo.

I don’t have time to create limiting mod for demo myself at moment, but I end up using it in my hosted vcmi servers experiment. Looks like it’s have everything server-side might need and it’s make it possible to keep this thing legal.

BTW I re-uploaded them to my server:
vcmi.arseniyshestakov.com/demo/

Would be nice if disabled towns and creatures were replaced on maps if placed there by a random town/ random same level creature.

This way all custom maps would be playable with demo version.

Also as far as vcmi mod map format goes this could also be nice to have . If someone disables forge in mods but vcmi made map would have it placed on map alternative to forcing the mod on would be to replace the town.

Anyway cool stuff with the demo.

Does anybody know where the demo can be officially downloaded? Just putting the demo on some random server is unfortunately a copyright violation (the copyright holders distributing it for free doesn’t mean that others are allowed to do so as well).

I don’t know what is Apple policy about software, but demo is always free to use and I can’t recall any restrictions in such cases (I’ve read windows demo warranty and there no restrictions about sharing demo) . BTW, who handles 20 years old software? Even original creators: NWC cease to exists long time ago.

Yes, free to use. That does not mean free to distribute.

Copyright doesn’t work that way round. The default is not “do whatever you want” and then you add restrictions. The default is “You are not allowed to do anything with it”. Unless the license says that you are allowed to redistribute the software it is a copyright violation to do so.

And about 20 years: copyright extends 70 years after the original author’s death. NWC ceased to exist but that doesn’t mean that everything they created is now free for everybody. Quite the opposite actually.

My interest in this topic is for the Debian vcmi package. It would be great if there was a legally okay source to download the demo from.

So you must ask Ubisoft about hosting Mac demo.

That will be a waste of time.

Yes, so my argument is:

Right now it is just as illegal (because of copyright reasons) to distribute the demo (except if you are ubisoft or whomever else they gave permission) as it is to distribute the full game.

So I wonder how useful it is to add support for the demo in these circumstances.

If somebody is pirating homam3, then they can actually do that with the full version and not pirate the demo instead. Unless there is a license from ubisoft that says otherwise, downloading the demo from an unauthorized source is just as illegal as downloading the full game.

If there was a way to download the demo legally from somewhere, I’d of course all be for supporting it by vcmi.

I think you should really ask Ubi what they say about statut of this demo. I’m completely sure they are treating is as abandonware. So, take your turn.

Anybody is free to do so. I encourage you to try. It is already loads of work trying to find somebody responsible. The last time I tried, I did so by phone, email and letter. The latter never got any response, the former two were unable to get me in contact with anybody who could give me concrete answers.

My only experience where ubisoft was actually doing something was, when they sent my web hoster take-down notices because I hosted videos on my server that showed off videos of my own homam3 engine-reimplementation which used their assets. So no, this is far from abandonware (depending on your personal definiton). They might not distribute the original game anymore but they still have their lawyers going after people infringing on their copyright. That this happened to me is proof of that.

I wish you the best of luck!

This is true for most countries, yes. But while it’s in theory illegal it’s kind of the point of a demo (as with freeware/shareware in general) to be distributed as widely as possible. That’s the reason why a website like Fileplanet can be in existence since more than 20 years. (according to their footer)

Downloading from “unauthorized sources” is not illegal (in most jurisdictions). That’s why people use sharehosters and streaming pages where the server operator bears the legal risk.

If FilePlanet seems like a dubious place to link to, you may want to consider the Internet Archive.

That’s wonderful!

Here is how to extract H3BITMAP.LOD, H3SPRITE.LOD, VIDEO.VID and the other files from the demo without having to execute the h3demo.exe on Linux:

$ md5sum h3demo.exe
33e40e8236126f63bc6f8f70568c379d  h3demo.exe
$ dd if=h3demo.exe skip=1 of=h3demo.cab ibs=130731
file h3demo.cab
$ h3demo.cab: Microsoft Cabinet archive data, 98134327 bytes, 17 files
$ cabextract -F Disk1/data1.cab h3demo.cab
$ unshield Disk1/data1.cab

In summary, what’s happening here is: h3demo.exe is a “InstallShield self-extracting archive” which contains a cab archive at byte position 130731 until the end of file. So we extract that part of the file and store it in h3demo.cab. That archive contains a single directory called Disk1 with a couple of stuff inside but we are only interested in data1.cab. Despite its name that file is not a cab archive but an InstallShield file, so we use unshield to extract that file as well.

EDIT:

The lod files from the demo are incomplete (not surprising). Here is the log I get when trying to start vcmi with the lod files from the demo:

VCMI 0.99 GITDIR-NOTFOUND (client)
Creating console and configuring logger: 1
The log file will be saved to "/home/josch/.cache/vcmi/VCMI_Client_log.txt"
	Initialization: 1
	Data loading: 13
	Mod handler: 0
	Mod filesystems: 12
Basic initialization: 28
Initialized logging system based on settings successfully.
[log level] ai => not set
[log level] animation => not set
[log level] bonus => not set
[log level] global => trace
[log level] network => not set
Error: campaign movies was not found!
Error: campaign music was not found!
Loading settings: 29
Found 3 render drivers
	opengl (active)
	opengles2
	software
Check display mode: requested 800 x 600; available up to 1920 x 1080 
Created renderer opengl
	Initializing screen: 105
	Initializing video: 0
Initializing screen and sound handling: 5
		Bonus type handler: 1
terminate called after throwing an instance of 'std::runtime_error'
  what():  Resource with name DATA/TENTCOLR and type TEXT wasn't found.

EDIT2:

And if I add a Data/tentcolr.txt with the content from the full game, the game starts but freezes during the 3DO logo video playing in the very beginning. strace says that it’s stuck at a futex() call waiting:

EDIT3:

Seems that vcmi is caught in an endless loop here:

sources.debian.net/src/vcmi/0.99 … .cpp/#L323

EDIT4:

Since that function seems to parse CRTRAITS.TXT I uploaded the file from the demo for your convenience. Maybe somebody notices something odd that makes the parser fail.

mister-muffin.de/p/uN-1.txt

Just in case there is Mac demo and it’s have all adventure map bitmaps and 3 towns so it’s fully functional in VCMI out-of-box. If legal problems can be somehow bypassed then we can use it instead.

Is someone could ask same guy on Web Archive publish it too then it’s could be helpful:

fileplanet.com/56293/50000/ … -III-Demo-[Mac]

The only thing I wonder about is there any open source game in Debian that actually do that? Like support downloading and extraction of demo assets.

I know winetricks request to manually download files and put them somewhere in some cases, but I suppose their legal status is dubious.

Why is it important if there is anything in Debian doing that? Isn’t this topic independent of the operating system vcmi is run on?

Anyways, here the Debian situation: for Debian it doesn’t matter whether the assets come from a source that you have to pay money for or a source that you do not have to pay money for. In case of this demo, the content is still non-free and vcmi would remain in the archive section it is in right now (contrib).

As for downloading assets, Debian has a tool that is used by multiple engines called game-data-packager. It even already supports Heroes of Might and Magic 3 (but not yet the Demo but uses the full game as its source).

Because Debian community unlike Arch or Gentoo actually care about legal status of packages and I hoped someone actually reviewed the situation. Like to be fair I never knew distribution of game demo versions could be illegal and I almost sure it’s should be legal in Europe at least.

For now It’s not that important in what part repository VCMI is. If we had a goal to make free assets then we could really ask few town creators to license them appropriately and replace everything else.

Though it’s not yet time for this kind of stuff since engine not fully playable yet.

[quote=“SXX”]

Debian can make use of the Demo in the sense that it is legal for Debian to distribute a script that automatically downloads and unpacks the demo (for example from archive.org). But it is not legal for Debian (or Arch or Gentoo or anybody) to distribute the demo unless the demo ships with a license that allows them to do so. I was not able to find such a license for the demo version.

Here a quick overview of the copyright situation in Europe: All creative works are “all rights reserved” by default. Whenever you find some creative work in the internet, then by default you are not allowed to do anything with it other than viewing it (because that’s what the rightsholder allowed you to do by putting it on their website). You are not allowed to distribute it (with or without modifications, with or without taking money for it) unless the copyright holder gave you specific permission to do so through a license.

So, ubi might’ve given certain third parties the permission to offer the demo for download but that does not mean that you automatically have that permission to do the same. Remember, by default any work is “all rights reserved”. It requires a license that says otherwise for you to be able to do more than just having the file on your own computer.

Thus, for Debian, the situation doesn’t change much if vcmi gains support for the demo version. The only change will be that the Debian version of vcmi might then gain the ability to automatically download the demo (for example from archive.org) and use its assets. But Debian (and everybody else unless there exists a license that says otherwise) is still not allowed to redistribute the demo.

This is the whole point of licenses like the GPL or creative commons. Since by default all works are “all rights reserved” it needs a license that specifically says that it is allowed to modify the work and share it with others. Another example is, that on github lots of code is shared without any mention of a license. This code is proprietary and cannot be used by anybody unless the author gives specific permisson. This is in contrast to what most people might think that by default everything is free to copy and it needs a big license to make doing so illegal. It’s the other way round. Everything is “all rights reserved” by default and it needs a license to allow people to do anything with it.