- Posts: 500
- Thank you received: 778
Scripts do not work
- Sasha
-
Topic Author
- Offline
- To triumphed over evil, you need only one thing - to good people inaction.
Less
More
8 years 3 months ago - 8 years 3 months ago #1
by Sasha
Scripts do not work was created by Sasha
I use scripts with training materials from the rpr disk, slightly changing them for myself does not work scripts on the crew of the tank.
If the soldier without weapons, he just runs away. If with weapons, it shoots but does not sit down in the tank.
Mpscripts.dta edited by the instructions but nothing works.
help me please. I have already sorted out a lot of things but here the scripts do not come out okay
If the soldier without weapons, he just runs away. If with weapons, it shoots but does not sit down in the tank.
Mpscripts.dta edited by the instructions but nothing works.
help me please. I have already sorted out a lot of things but here the scripts do not come out okay
Last edit: 8 years 3 months ago by Sasha. Reason: Fix Img.
Please Log in or Create an account to join the conversation.
- betteryouthanme
-
- Offline
Less
More
- Posts: 512
- Thank you received: 349
8 years 3 months ago #2
by betteryouthanme
Replied by betteryouthanme on topic Scripts do not work
Well WordPad is not a very good choice to work with scripts. I suggest
Notepad++
.
If you handle the mpscripts.dta file with HD2 Scripter you have to fix the file with a Hex Editor afterwards:
You can also upload both files somewhere so i can have a look.
With what instructions did you edit the mpscripts.dta?
About your scripts i cannot see a serious problem. Just a few notes:
If you handle the mpscripts.dta file with HD2 Scripter you have to fix the file with a Hex Editor afterwards:
- Go to the end of the file and remove the last 2 dots
- Fix the file size value which is always at 0x02-0x05 position
You can also upload both files somewhere so i can have a look.
With what instructions did you edit the mpscripts.dta?
About your scripts i cannot see a serious problem. Just a few notes:
- You have defined a few integers which you do not use (Atype, rnd, firstalarm)
- SetAlarmType(768, 1) is not required as you activate all alarm types with SetAlarmType(1023, 1) in previous line anyway
- Don't know what's the max value for sightrange but 1000 should be sufficient
- The number you wrote into HUMAN_DriveNearPlayer(a) represents the driving speed in km/h, 2000 seems a bit over the top
The following user(s) said Thank You: Sasha
Please Log in or Create an account to join the conversation.
- Sasha
-
Topic Author
- Offline
- To triumphed over evil, you need only one thing - to good people inaction.
Less
More
- Posts: 500
- Thank you received: 778
8 years 3 months ago - 8 years 3 months ago #3
by Sasha
Replied by Sasha on topic Scripts do not work
Thanks for the recommendations) I will remember this,I was already able to get the script to work, the problem was this:
HD2 scripter form mpscript.dta and in the beginning something like an Indeifier?
In the screenshot is 00 00 ea 0a 00 00 : just copy and paste into the mission mpscript.dta file in the beginning so it worked for me.
HD2 scripter form mpscript.dta and in the beginning something like an Indeifier?
In the screenshot is 00 00 ea 0a 00 00 : just copy and paste into the mission mpscript.dta file in the beginning so it worked for me.
Last edit: 8 years 3 months ago by Sasha.
Please Log in or Create an account to join the conversation.
- betteryouthanme
-
- Offline
Less
More
- Posts: 512
- Thank you received: 349
8 years 3 months ago - 8 years 3 months ago #4
by betteryouthanme
Replied by betteryouthanme on topic Scripts do not work
This 4-bytes value represents the file size. See attached images.
Last edit: 8 years 3 months ago by betteryouthanme.
The following user(s) said Thank You: Sasha
Please Log in or Create an account to join the conversation.
- Sasha
-
Topic Author
- Offline
- To triumphed over evil, you need only one thing - to good people inaction.
Less
More
- Posts: 500
- Thank you received: 778
8 years 3 months ago #5
by Sasha
Replied by Sasha on topic Scripts do not work
Thank you! Now I understand everything) and everything will be much easier to do than before)
Please Log in or Create an account to join the conversation.
Birthdays
- Pozytywnefloow in 2 days
- Zbyl in 2 days
- Matheo in 3 days