How to add sound, water with waves and light to map?
Hi, i was wondering how to add sound (like sound in s1 when you go your right from entrance to moving stars on wall and you hearing "dungeon_device_side.wav" as you get closer ) to map and how to add lights or lighting map.
I was wondering if its done from .exe itself but i don't think so since i did not found any coordinates.
ASE export support light (i don't see light in game) but i did not sow any "sound element" there.
How to add water that make waves when you step on it (in game)?
And last question how to make lights that turning on only at night (like those in ric) and is it possible to make lights that turning on only at day?
:thumbup1:
Re: How to add sound, water with waves and light to map?
Lights are defined in the .ASE (including if they turn on at night only, etc)
Sounds are defined in the .exe at the same function when it loads the maps
Re: How to add sound, water with waves and light to map?
I don't think that "lights" work in the normal sense of modern 3D games. Day or night is signified by a global pallet change across all the textures, and street lighting is just a lens flare.
Older 3D games used either this method, or light maps on specific textures which where shaded using a separate colour map to other textures in the same area. That's about the easiest solution in software rendering, but with accelerated 3D the card would rather do it it's self... PT never implemented anything more than a form of phong or gourad shading on the Players and NPCs... the landscape has no light mapping to speak of.
This mixture of light effected characters and NPC on a non-light affected landscape appears to be done by rendering the character on one DC (Device Context) off screen, and then mapping it onto the 3D world as a flat sprite in the 3D world that always faces the camera.
Most players don't seem to notice, but it has always looked ugly to me. :s
Re: How to add sound, water with waves and light to map?
Actually i was not thinking of lights as light that make target drop shadow, pt don't even support that. For lighting up or making areas darker i add extra map with some gradients etc.
But i still can't create light on map (same light that is turned on at night in ric). PT convert all files in different ways, same file converted as mushroom cave map and as ric map is different, they contain other info and some "distorted data".
If anyone know how to put light on map and how to export it as .ase + as what file (ric map, s1 etc.) please tell me. Any special parameters and how to control it on/off?
As for sound is it this function, f that load maps? I got pseudo code from it:
Quote:
sub_426F23("forest\\2ani-04.ASE", 0);
sub_426F09(-5427, -9915);
sub_4274E6(-2272, -10314);
sub_4274E6(-7192, -11175);
sub_427E3A(&unk_740550, -292, -9548, 0);
sub_42764A(-3775, 171, -14447, 160, 13);
sub_427008(-3408, -12447, 251, 64, 32);
sub_4270BE(&unk_73F0D4, -3265, -12583, 214);
I don't get any x,y,z for sound location? Or sound file name?
And last still not answered question how to make water that getting distorted as you step on it, like all lakes, rivers in pt world? Any special parameters, name or extra map on material?
Re: How to add sound, water with waves and light to map?
I think... to start with... you need to understand how the existing maps are worked. I would reference this thread where Beyond2000 is trying to reverse the binary form of ASE files used by the PT client and server.
SoyEdu also has made some progress at making new maps for PT with his Age of Priston Tale setup. I don't think he has water, but he may know more.
If you give these people a gentle nudge (Link this thread) they may be able to tell you more than most here. ;) Please don't demand infos however... that's just not polite. And remember people have real life time limitations and priorities.
Re: How to add sound, water with waves and light to map?
Yeah sorry for that, i did not wonted it to sound like demand, sometimes my language might sound bit pushy, it was question only. Game is old now so i thought that someone figure it out already.
I already know how maps work, for example PT units look like that: 1 3d studio unit = 256 pt units, i know how to create animation, how to place map in space etc. but this is bit mess for me when i look in files.
If you say that its worth to ask those 2 than i will give a try if i fail again with making my water that get distorted once you step on it ;-)
Have a nice day ;d
Re: How to add sound, water with waves and light to map?
Maps is just replacing another. What beyond2000! is doing though is a bit more complex as he is figuring out how to actually mae the maps a .ase so we can edit it (r only he can :P)
Re: How to add sound, water with waves and light to map?
Yea... I think Vormav, that you know what most of us know. I know one other person has decoded the .smb .smd files (which are binary .ase files) but they have not shared their work... and from the sounds of things, they rushed through a dirty job which is why they don't want to share it.
beyond2000 is attempting to create an assembler program which does the opposite to the client codes turning an ASE into a SMD / SMB file... so that you can see what items, objects or materials the normal client finds in.. for example... water, on the regular maps.
You should then be able to replicate that in your own maps.
It is likely, that there is some key material in the original ASEs that the client identifies as "water" that should move and splash as the player walks through it. But until we can see the original (reverse binarised) ASEs we don't know what the properties of that material should be.
And... as I've said before, 3D stuff is not my field. So I couldn't help.
Also, I did not mean to imply that you where "demanding" but some people can be, and I want to be sure that my suggestions aren't used as an excuse to be so. :wink: If you ask politely, it is up to those people to decide if they have the time to help you. They are not obliged to do so.
Re: How to add sound, water with waves and light to map?
i think that actually making water is part of the map. Bobsobol go on SoyEdu's site and look at the new map. the water there is INCLUDED, that must mean something?