Please login or register.

Login with username, password and session length
Advanced search  

News:

For WME related articles and tutorials visit WME Resource Center.

Pages: [1] 2 3 ... 10
 1 
 on: Yesterday at 07:33:02 PM 
Started by cccatch - Last post by Mot
Hey cccatch :)

Kudos to you on your project. It looks interesting and useful.

 2 
 on: June 18, 2025, 06:10:03 AM 
Started by cccatch - Last post by cccatch
Code: [Select]
import zlib,numpy as np,os,sys
f=open('data.dcp','rb')
f.seek(128)
f.seek(np.frombuffer(f.read(4),dtype=np.uint32)[0])
f.read(7)
cnt=np.frombuffer(f.read(4),dtype=np.uint32)[0]
tok=f.read()
for i in range(cnt):
 c=tok[0]
 tok=tok[1:]
 fname=(np.frombuffer(tok[:c],dtype=np.uint8)^ord('D')).tobytes().rstrip(b'\0').replace(b'\\',b'/')
 tok=tok[c:]
 d,n=os.path.split(fname)
 d=b'datan/'+d
 if b'.' in n:
  n,e=n.split(b'.',1)
  n=n+b'.'+(e[:3])
 os.makedirs(d,exist_ok=True)
 info=np.frombuffer(tok[:24],dtype=np.uint32)
 tok=tok[24:]
 f.seek(info[0])
 if info[2]:
  z=zlib.decompress(f.read(info[2]))
  if len(z)!=info[1]:
   raise RuntimeError
 else:
  z=f.read(info[1])
 of=open(d+b'/'+n,'wb')
 of.write(z)
 of.close()

 3 
 on: June 18, 2025, 06:09:04 AM 
Started by cccatch - Last post by cccatch
Code: [Select]
/*wmepico (Power C 2.0, run "pc /e wmepico.c")*/
#include <malloc.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <direct.h>
typedef struct{
char magic[8];
char packageVersion[12];
char desc[104];
char numDirs[8];
}hdr;
FILE*arc;
char far*heap;
long heapsz=0;
long filecnt=0;
char origdir[256];
void fail(char const*s){
puts(s);
fclose(arc);
chdir(origdir);
exit(0);
}
void put_header(){
hdr h;
memset(&h,0,sizeof(h));
strcpy(h.magic,"\xde\xad\xc0\xdeJUNK");
h.packageVersion[1]=2;
strcpy(h.desc,"MINhMain data    (Wintermute Engine \xa9 DEAD:CODE 2010)");
h.numDirs[0]=1;
if(fwrite(&h,sizeof(h),1,arc)!=1){
fail("disk is not writeable");
}
}
char full_path[4096];
char iobuf[4096];
int subdirs[8];
char const*known_exts[]={
"act\0or",
"but\0ton",
"fon\0t",
"gam\0e",
"ima\0ge",
"ite\0ms",
"sce\0ne",
"scr\0ipt",
"set\0tings",
"spr\0ite",
"win\0dow",
NULL
};
int walk(char const*d,int depth){
struct ffblk e;
char*p=&e.ff_name;
char*o;
char*m;
int h;
char**s;
char*at=full_path;
char*ext;
int t;
FILE*f;
long off;
if(depth>=8||chdir(d))goto err;
if(depth)at+=subdirs[depth-1];
h=findfirst("*.*",&e,22);
while(h!=-1){
if(!(*p=='.'&&(p[1]==0||(p[1]=='.'&&p[2]==0)))){
o=at;
ext=p;
while(*ext&&*ext!='.'){
t=*ext;
if(t>='A'&&t<='Z')t+='a'-'A';
*o++=t;
++ext;
}
if(*ext=='.'&&ext[1]){
*o++='.';
++ext;
m=o;
while(*ext){
t=*ext;
if(t>='A'&&t<='Z')t+='a'-'A';
*o++=t;
++ext;
}
*o=0;
s=known_exts;
while(*s){
if(!strcmp(*s,m)){
ext=(*s)+(strlen(*s)+1);
t=strlen(ext);
memcpy(o,ext,t);
o+=t;
break;
}
++s;
}
}
if(o==at)fail("empty file name");
*o++='\\';
subdirs[depth]=o-full_path;
if(e.ff_attrib&16){
fwrite(full_path,1,subdirs[depth],stdout);
puts("");
walk(p,depth+1);
}else{
printf("File ");
fwrite(full_path,1,subdirs[depth]-1,stdout);
puts("");
if(subdirs[depth]>255)fail("filename is too long");
f=fopen(p,"rb");
if(!f)fail("can't open file");
if(heapsz+(8+subdirs[depth])>(1L<<19))fail("out of memory");
farmemcpy(heap+heapsz,full_path,subdirs[depth]);
heap[heapsz+subdirs[depth]-1]=0;
heapsz+=subdirs[depth];
off=ftell(arc);
farmemcpy(heap+heapsz,&off,4);
for(;;){
t=fread(iobuf,1,4096,f);
if(t<0){
fclose(f);
fail("read error");
}
if(!t)break;
if(fwrite(iobuf,t,1,arc)!=1){
fclose(f);
fail("write error");
}
}
off=ftell(arc)-off;
farmemcpy(heap+heapsz+4,&off,4);
heapsz+=8;
filecnt+=1;
fclose(f);
}
o=at;
while(*o!='\\'){
if(*o=='~')fail("long name error");
++o;
}
}
h=findnext(&e);
}
if(chdir("..")){
err:
fail("disk error");
}
return 0;
}
int main(){
size_t sz;
size_t z;
char far*s;
long p;
long i;
if(!(s=heap=farmalloc(1L<<19))){
puts("can't allocate");
return 0;
}
if(!getcwd(origdir,255))return 0;
arc=fopen("data.dcp","wb");
if(!arc)return 0;
put_header();
walk("data",0);
p=ftell(arc);
if(fwrite("\5data\0\0",7,1,arc)!=1)fail("can't write footer");
if(fwrite(&filecnt,4,1,arc)!=1)fail("can't write file count");
for(i=0;i<filecnt;++i){
sz=farstrlen(s)+1;
if(fputc(sz,arc)!=sz)fail("can't write filename length");
farmemcpy(iobuf,s,sz+8);
s+=sz+8;
for(z=0;z<sz;++z)iobuf[z]^='D';
if(fwrite(iobuf,sz+8,1,arc)!=1)fail("can't write filename");
if(fwrite("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",16,1,arc)!=1)
 fail("can't write garbage");
}
fseek(arc,128,SEEK_SET);
if(fwrite(&p,4,1,arc)!=1)fail("Why? It was almost done!");
fail("OK");
return 0;
}

 4 
 on: June 17, 2025, 03:54:59 PM 
Started by Eric Matyas - Last post by Eric Matyas
Hey everyone,

Brand new Mp3 tracks are ready for your projects...free as always to use with attribution, just like my thousands of other music tracks. They're on my Jazz / Big Band page:

"SHUFFLIN"  (LoFi)
"SLAPSTICK" (LoFi)
"BIG BAND MAN"  (LoFi)
https://soundimage.org/jazz-big-band/

PLEASE READ

If you can, please consider helping to support my efforts. My website is 100% ad-free and I pay for everything myself (including my keyboard synthesizers which are very expensive.) Your contributions make what I do possible.

How to support me:

You can make a small donation here:
https://soundimage.org/donate/

You can get a genre music pack here:
https://soundimage.org/ogg-music-packs-2/

You can get my Music Mega Pack here:
https://soundimage.org/ogg-game-music-mega-pack/

You can hire me to create some custom music for your project:
https://soundimage.org/custom-work/
 
Thanks in advance for your support...please stay safe and keep being creative!  :-)

 5 
 on: June 15, 2025, 04:07:29 PM 
Started by Eric Matyas - Last post by Eric Matyas
Hey Everyone,

I've created new seamless metal textures to share with the community. You can find them here:
https://soundimage.org/txr-metal-seamless/

They're 100% free to use, as always, like my thousands of other images, music tracks and sounds.

My images homepage is here:
https://soundimage.org/images-home-page/

If you can, please consider helping to support soundimage. My website is 100% ad-free and I pay for everything myself (including my keyboard synthesizers which are very expensive.) Your contributions make what I do possible.

You can make a small donation here:
https://soundimage.org/donate/

You can get a genre music pack here:
https://soundimage.org/ogg-music-packs-2/

You can get my Music Mega Pack here:
https://soundimage.org/ogg-game-music-mega-pack/

You can hire me to create some custom music for your project:
https://soundimage.org/custom-work/
 
Thanks in advance for your continued support...please stay safe and keep being creative!  :-)

 6 
 on: June 15, 2025, 02:44:56 PM 
Started by cccatch - Last post by cccatch
Code: [Select]
#include <std_disclaimer.h>
"I do not accept responsibility for any effects, adverse or otherwise, that this code may have on you, your computer, your sanity, your dog, and anything else that you can think of. Use it at your own risk."

New in version 3.1.6.3:
  • Improved saving speed by 33%
  • Logs are more verbose now
  • Fixed build from real DOS
  • Added ScummVM support

FAQ:
Q: I copied my data files from the Wintermute official IDE, but they aren't working!
A: They must be converted first. Please build your project normally using official tools, and then, you'll need to decompress data.dcp file.
Get Python 3, Numpy and that script: https://drive.google.com/file/d/1Ot06g-nn7rnvEzppUKF4gK_vG0FMcGqL/view?usp=sharing

Q: My OS tells wmepico.exe is not compatible with my version of Windows.
A: You'll need an emulator then. If you pick DOSBox, configure it like this:

Code: [Select]
...
[autoexec]
rem Directory C:\wmepico must exist on host system
mount c C:\wmepico
c:
wmepico
pause

Thank you Slimer and yolklore for all your support and extensive testing.

Download: https://drive.google.com/file/d/1ZQca7Em8TM1YktAn6ooJOCxxwiw6Ysv1/view?usp=sharing

Comments are always welcome, of course.

 7 
 on: June 10, 2025, 03:10:31 PM 
Started by Eric Matyas - Last post by Eric Matyas
Lots of stuff going on this week:

I've created new free Mp3 music tracks for your projects. They are:

"The Island of Horribleness"_LoFi
"Ghouls Rule"_LoFi
 "Creepytown"_LoFi

Good creepy fun! You'll find them on my Horror 2 page:
https://soundimage.org/horror-2/

Ogg GENRE PACK PREVIEW VIDEOS

You can now preview my genre packs as well as my Mega Music Pack on YouTube:
https://www.youtube.com/playlist?list=PL7oAWDZHVlg50yMMdGs0-MPQGhh6gQ3sw

CUSTOM MUSIC

I'm off and running creating a custom soundtrack for "Warbound," a strategy role-playing game set in a fantasy world.

If anyone needs some custom music created, I'd love to help out! You can contact me here:

https://soundimage.org/custom-work/

OTHER HELPFUL LINKS (I hope)
https://soundimage.org/ogg-game-music-mega-pack/
https://soundimage.org/ogg-music-packs-2/

As always, enjoy, stay safe and keep being creative!

 8 
 on: June 07, 2025, 01:27:56 PM 
Started by Eric Matyas - Last post by Eric Matyas
Greetings Friends!

More seamless texture images are ready for you on these pages on my site:

https://soundimage.org/txr-brick-seamless/
https://soundimage.org/txr-concrete-pavement-seamless/

As always, they're 100% free to use in your projects with attribution, just like my thousands of other images, Mp3 music tracks and sounds.  It's all original...all my own work.

Here's a preview video showing some of my textures:

https://youtu.be/ZYIZjpb3I3c?si=g68J8QhnaZHChwB2

Ogg MUSIC MEGA PACK

Speaking of which, don't forget to check out my new preview video for my Ogg Music Mega Pack...it runs just over an hour and has chapter markers so you can get a good preview of the various genres in the pack.

It's also kind of fun to listen to while doing other things...hopefully it'll give you a good idea of my music if you're not yet familiar with it.

Here's the link:
https://youtu.be/W7yQVscjqUM?si=wD1XqAOJ6_Lswgqw

OTHER USEFUL LINKS (I hope)
https://soundimage.org/ogg-game-music-mega-pack/
https://soundimage.org/ogg-music-packs-2/

Enjoy, please stay safe and keep being creative!  :-)

 9 
 on: June 03, 2025, 04:33:04 PM 
Started by Eric Matyas - Last post by Eric Matyas
Hey everyone,

It's been a very busy week, but I did manage to create and upload a new free music track to share with the community. You'll find it on my Puzzle Music 8 page:

"BOUNCE LIGHT 3 "
https://soundimage.org/puzzle-music-8/

Btw, the tracks on these pages can be used for all kinds of things besides puzzle games...that's just the first genre that comes to mind when I create them.  Give them a listen!  :-)

CUSTOM MUSIC

Need some custom music created for your project? Well, they say if you want something to get done, give it to someone who's busy...and that would definitely be me. I work with multiple clients all the time so feel free to email me if you need help.  My contact info is here:

https://soundimage.org/custom-work/

Ogg MUSIC PACKS are here:
https://soundimage.org/ogg-music-packs-2/
https://soundimage.org/ogg-game-music-mega-pack/

And a brand new video preview of my Ogg Music Mega Pack is here:
https://youtu.be/W7yQVscjqUM?si=ZOALTyvdNwr0Wox9

It runs about an hour and is actually kind of fun to listen to while doing other stuff.

Give it a try!

In the meantime, please stay safe and keep creating awesome stuff.

 10 
 on: May 29, 2025, 02:17:32 AM 
Started by Eric Matyas - Last post by Eric Matyas
Hello Fellow Creatives!

I made some cool new seamless texture images to share with you. Free, as always, to use in your projects with attribution. They're on my TXR - Brick - Seamless page...here's the link:

https://soundimage.org/txr-brick-seamless/

PREVIEW VIDEO

Big news for those of you who are using my music tracks:

I've created a brand new preview video that contains a sampling of my music tracks that you'll find in my Ogg Music Mega Pack. You can check it out here:

https://youtu.be/W7yQVscjqUM?si=wD1XqAOJ6_Lswgqw

PACKS THAT GROW WITH YOU

I think the coolest thing about the music packs isn't just that they keep growing as I add new tracks to them, but that Gumroad allows me to notify users so they can download the newest additions as they come out. I really like the idea of music packs that grow along with the people who are using them.  :-)

You'll find the Mega Pack here:
https://soundimage.org/ogg-game-music-mega-pack/

And my genre packs here:
https://soundimage.org/ogg-music-packs-2/

As always, enjoy, stay safe and keep creating!  :-)

Pages: [1] 2 3 ... 10

Page created in 0.035 seconds with 13 queries.