GTAMP.com

Grand Theft Auto Media Press
It is currently Sun Aug 20, 2017 3:19 pm

All times are UTC




Post new topic Reply to topic  [ 989 posts ]  Go to page Previous  1 ... 46, 47, 48, 49, 50
Author Message
PostPosted: Thu Jan 14, 2016 6:45 pm 
Offline
User avatar

Joined: Fri Jan 29, 2010 3:03 pm
Posts: 894
Sektor wrote:
I recorded the video again with better coordinates and infinite water: https://youtu.be/-px-eP0h5tw

Epic! Second video is better. :)

_________________
"Mmmm, your eyes are so beautiful."


Top
 Profile  
 
PostPosted: Mon Jan 25, 2016 9:04 pm 
Offline
User avatar

Joined: Fri Jan 29, 2010 3:00 pm
Posts: 945
Location: F21B3EED
Sektor wrote:
I hijacked the Epic GTA2 Map Editor 3D camera and took it for a ride with the GTA2 engine [remote] :)





WOOOOOOOOOOOOW!!! AVVVesome with triple-u! (new letter invented just for this) :o :o :o

Sektor wrote:
Is it possible to start Epic GTA2 Map Editor with most of the windows turned off and camera set to a specific view? If there's no setting for it then it would be great if you could add it. I don't know if I've said it before but your editor is amazing, so many features, so much work and it runs really fast.

Yes you should be able to make it render just the map, and even turn it into fullscreen mode if i remember correctly. I think you can define camera starting coordinates in settings.cfg if i remember correctly. I think you're amazing ;)

Edit: looks like xpos and ypos is missing from settings.cfg, i can add them immediately if it still compiles after few years :D

Sektor wrote:
We'll have to talk about the best way our apps can communicate or how I should fix my code so you can actually use it.

What would be best way in your opinion? I dont know almost anything about app2app communications. I havent looked at the code yet, what seems to be the problem? How would you want to use it?

_________________
My GTA2 related projects:


Top
 Profile  
 
PostPosted: Mon Jan 25, 2016 9:41 pm 
Offline
User avatar

Joined: Fri Jan 29, 2010 3:00 pm
Posts: 945
Location: F21B3EED
Looks like some of the windows on the editor cannot be hidden from settings.cfg, i will try to add those settings ASAP!

_________________
My GTA2 related projects:


Top
 Profile  
 
PostPosted: Mon Jan 25, 2016 11:52 pm 
Offline
Boss
User avatar

Joined: Tue Mar 04, 2008 6:51 am
Posts: 1271
Location: GTAMP.com
Welcome back, where have you been? I thought you would have viewed this weeks ago :)

I think it's just left menu and the script preview that I can't hide in settings.cfg. camera.dat saves my 3D view but I have to manually load it, so a settings.cfg option to load camera.dat on launch would be good.

Can you add rocket and bullet object?

All these would be good too but I think I will have trouble syncing the electrogun.

ROCKET
BULLET
PISTOL_BULLET
FLAMING_BULLET
TASER_BULLET
SHOT
WATER_BULLET
FIRE

I want to sync all the objects, peds, vehicles. At the moment, I have to find the memory address for each one in your editor but that's tedious and those addresses could change when you update/recompile the editor. I could turn gta2xyz into a DLL that you could load and read all the object coordinates from. I'm really new at C++ and I didn't even use classes or multiple files in my code, so I'll have to rewrite it.

I've never used proper app2app communication with sockets or DDE or whatever. A cheat way is to create a hidden textbox and use WM_GETTEXT but that's really dodgy and not very fast.


Top
 Profile  
 
PostPosted: Tue Jan 26, 2016 8:00 am 
Offline
Hitman
User avatar

Joined: Sun Feb 28, 2010 10:34 pm
Posts: 142
DDE is awful. The keyword you're after is IPC :D JSON-RPC over sockets has worked reasonably well for me in the past- there are heaps of libraries available. It might not be the best choice for local interaction but it's definitely simple.


Top
 Profile  
 
PostPosted: Tue Jan 26, 2016 4:17 pm 
Offline
User avatar

Joined: Fri Jan 29, 2010 3:00 pm
Posts: 945
Location: F21B3EED
Sektor wrote:
Welcome back, where have you been? I thought you would have viewed this weeks ago :)

Oh yeah sorry took around 2 weeks! :shock: I guess i have just been outside of the internet too long!

Sektor wrote:
I think it's just left menu and the script preview that I can't hide in settings.cfg. camera.dat saves my 3D view but I have to manually load it, so a settings.cfg option to load camera.dat on launch would be good.

Heh, i already forgot such file existed, camera.dat i mean. :D I guess i could make a setting for loading that file

Sektor wrote:
Can you add rocket and bullet object?

Hmm... i think i was working on those before but never released... sure i can, my time is just very limited atm.

I also worked on sounds, not sure if they work on the release version.

Sektor wrote:
All these would be good too but I think I will have trouble syncing the electrogun.

ROCKET
BULLET
PISTOL_BULLET
FLAMING_BULLET
TASER_BULLET
SHOT
WATER_BULLET
FIRE

I want to sync all the objects, peds, vehicles. At the moment, I have to find the memory address for each one in your editor but that's tedious and those addresses could change when you update/recompile the editor. I could turn gta2xyz into a DLL that you could load and read all the object coordinates from. I'm really new at C++ and I didn't even use classes or multiple files in my code, so I'll have to rewrite it.

Indeed memory addresses wouldnt be very good idea. How would you control those objects in my editor? Because i cant just spawn one bullet there which you control. And how would it disappear?

Sektor wrote:
I've never used proper app2app communication with sockets or DDE or whatever. A cheat way is to create a hidden textbox and use WM_GETTEXT but that's really dodgy and not very fast.

Textbox, funny hack idea :D might just work!

Could someone find out the best way and brief me about it, so i can quickly do these things next time i got some time?

_________________
My GTA2 related projects:


Top
 Profile  
 
PostPosted: Tue Jan 26, 2016 7:28 pm 
Offline
Hitman
User avatar

Joined: Sun Feb 28, 2010 10:34 pm
Posts: 142
Actually quickest/easiest way is probably Windows Messages. You're not transferring much data, they're fast, and you already have to deal with them. TM just defines WM_PLAYER1XY = WM_USER+1, WM_PLAYER1ZA = WM_USER+2, then pass in X/Y/Z/A as wParam and lParam. Define a message or probably a pair for each object type and bam.

eejit edit:
You can pass pointers to windows messages... so TM could receive WM_UPDATEOBJECTPOS (WM_USER+1), wParam=objTypeEnum, lParam = pointer to data for that objtype. Just use sendmessage, and TM has to copy the data when he receives it- SendMessage messages occur in the thread of the calling process (Sektor's code in this case, so his pointer is valid).


Top
 Profile  
 
PostPosted: Sat Jul 29, 2017 8:28 pm 
Offline
User avatar

Joined: Sat Dec 26, 2009 11:53 pm
Posts: 1060
since playing gta2 on linux works well i was curious whether it would be possible to do modding on linux too. i tried all important tools and it turns out that only the miss2 compiler(mayor problem but that might change with b$heps compiler) and your editor have problems. it crashes when the main window starts trying to display something(after "loading" is displayed). its not super important because the linux gta2 modding scene is probably rather small ;) but i thought you might be interested.

_________________
yur sa'nok ngeyä


Top
 Profile  
 
PostPosted: Mon Jul 31, 2017 11:45 am 
Offline
User avatar

Joined: Fri Jan 29, 2010 3:00 pm
Posts: 945
Location: F21B3EED
Might be related to omnitude.net going offline soon as Vike informed me a while ago. Noticed some stuff isnt there anymore. You may send the crashlog via PM if that helps.

_________________
My GTA2 related projects:


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 989 posts ]  Go to page Previous  1 ... 46, 47, 48, 49, 50

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group