FAQFAQ    Board RulesBoard Rules    SearchSearch    LotteryLottery    RouletteRoulette    UsergroupsUsergroups
     RegisterRegister  ProfileProfile    Log in to check your private messagesLog in to check your private messages    Shop    Log inLog in 
View posts since last visit View your posts View unanswered posts

Detector in freeitaly doesn't work!

 
Post new topic   Reply to topic    Mafiascene.com Forum Index -> Ask a Modder - Modding
View previous topic :: View next topic  
Author Message
DMateo07

Member
Member


Joined: 10 Jul 2014
Posts: 129
Location: Poland, Bydgoszcz
178 Bank Notes
Items

PostPosted: Sun Dec 06, 2015 8:38 pm    Post subject: Detector in freeitaly doesn't work! Reply with quote

Hey!
I tried to add detector script in freeitaly and freekrajina. I want to add script to change mission by drive to detector. Just the same as between Lost Heaven and Country in freeride. The same script, only changed frames and load missions.
Everything works fine at the freekrajina, detector works and missions is changed.
But the problem is in freeitaly. The same script, only changed mission and load point. And that's not working. I have no idea why. Also I changed the main scripts (start etc.) to the same as in freekrajina, but it's still doesn't work.

Script in freekrajina (works):
Code:
dim_flt 1

label 101
wait 100
detector_inrange 0,30
if flt[0]=1,-1,101

commandblock 1
freeride_scoreadd 1
freeride_scoreget 0
setmissionnumber flt[0]
change_mission "freeitaly","load_from_lostheavencountry",40
commandblock 0


Script in freeitaly (doesn't work):
Code:
dim_flt 1

label 101
wait 100
detector_inrange 0,30
if flt[0]=1,-1,101

commandblock 1
freeride_scoreadd 1
freeride_scoreget 0
setmissionnumber flt[0]
change_mission "freekrajina","load_from_northtown",40
commandblock 0
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ASM.

Mafiascene Veteran Modder
Mafiascene Veteran Modder


Joined: 10 Jan 2014
Posts: 98

221 Bank Notes
Items

PostPosted: Sun Dec 06, 2015 10:17 pm    Post subject: Detector in freeitaly doesn't work! Reply with quote

The first thing you could try is to add a freeride_scoreadd command right at the start of the detector script (after the dim_flt for example) in order to find out whether the script is started at all. It's possible to specify the initial state of script objects. Depending on how you created the detector script object, it's well possible that its initial state is inactive.

Edit: See also Matteo's Cheese Burger Modding Tips - 2 The Drive In.
Back to top
View user's profile Send private message
DMateo07

Member
Member


Joined: 10 Jul 2014
Posts: 129
Location: Poland, Bydgoszcz
178 Bank Notes
Items

PostPosted: Mon Dec 07, 2015 3:51 pm    Post subject: Detector in freeitaly doesn't work! Reply with quote

Hmm... Unfortunately detector doesn't work. Also I tried to check it by add the change mission script to run by click. As normal scripts for example save game in Salieri's Bar. And this way is working. So there is something wrong with detector. By why it's working? Also I have changed positions of frame, but it doesn't get any result.

Also: I seen topic you sent, but there screens aren't loading (where as I think were something important) and I can't understand it exactly.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ASM.

Mafiascene Veteran Modder
Mafiascene Veteran Modder


Joined: 10 Jan 2014
Posts: 98

221 Bank Notes
Items

PostPosted: Mon Jan 04, 2016 7:51 pm    Post subject: Detector in freeitaly doesn't work! Reply with quote

DMateo07 wrote:

Also: I seen topic you sent, but there screens aren't loading (where as I think were something important) and I can't understand it exactly.

The thread is fairly old so I guess the image hoster has removed the pictures since. They're not that important though, just do what Matteo writes in the last paragraph, namely:
Quote:

Its always 24 ae xx xx xx xx 01 00
(the xx numbers being unimportant it is the last two sets are important and they are always 01 00)
Its the last set of numbers in the highlighted box you are concerned with


Change that last 0 to a 1 and save the file, your script is now activated and will autoload as you drive within your detect radius
Back to top
View user's profile Send private message
MatteoCapoletti

Mafiascene Veteran Modder
Mafiascene Veteran Modder


Joined: 05 Mar 2013
Posts: 507

975 Bank Notes
Items

PostPosted: Thu Jan 07, 2016 11:07 pm    Post subject: Re: Detector in freeitaly doesn't work! Reply with quote

ASM. wrote:
DMateo07 wrote:

Also: I seen topic you sent, but there screens aren't loading (where as I think were something important) and I can't understand it exactly.

The thread is fairly old so I guess the image hoster has removed the pictures since. They're not that important though, just do what Matteo writes in the last paragraph, namely:
Quote:

Its always 24 ae xx xx xx xx 01 00
(the xx numbers being unimportant it is the last two sets are important and they are always 01 00)
Its the last set of numbers in the highlighted box you are concerned with


Change that last 0 to a 1 and save the file, your script is now activated and will autoload as you drive within your detect radius



this is the answer, you are going to have to get an ascii editor to make the changes. XVM is the one I use. It lets you search for a text string that will take you title of the script, then just roll through the combination of the string until you find the one above, That is required for all proximity detectors. One little number is all you need to change. Finding that number can be a b...er bear. Good news is your latest scripts are usually down at the bottom, just above the init scripts

yeah all my old stuff has gone to the crapper as the free serves I had them on dumped me
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Mafiascene.com Forum Index -> Ask a Modder - Modding All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

Generation Time: 0.023 | Queries: 19