As the title says,when i open a map with script on it (some maps works) and open the Script API and then close it. this error occurs:Superfighters Deluxe has not responding,is there any way to fix it,i tried uninstall but never work.
thanks anyways.
Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.
New to the forum? Say hello in this topic! Also make sure to read the rules.
New to the forum? Say hello in this topic! Also make sure to read the rules.
Broken Map Script Thing
Forum rules
By using the forum you agree to the following rules. For this forum you also need to follow these additional rules.
By using the forum you agree to the following rules. For this forum you also need to follow these additional rules.
- Gurt
- Lead Programmer
- Posts: 1884
- Joined: Sun Feb 28, 2016 3:22 pm
- Title: Lead programmer
- Started SFD: Made it!
- Location: Sweden
- Gender:
- Age: 34
If the bug is related to custom map-making then include a download link to the map illustrating the problem.
The map should be bare-bone - only include what's necessary in the map to illustrate the problem.
If the problem is not related to a specific map please provide some more details what you mean.
The map should be bare-bone - only include what's necessary in the map to illustrate the problem.
If the problem is not related to a specific map please provide some more details what you mean.
1 x
Gurt
- Proxmin-O
- Fighter
- Posts: 21
- Joined: Fri Jul 27, 2018 5:07 am
- SFD Account: Proxmin
- Started SFD: August 2016
btw i know whats the problem,The problem is this script:
Public void cot1(TriggerArgs args)
{
IPlayer immabutcher = (IPlayer)args.Sender;
immaButcher.SetProfile(((IObjectPlayerProfileInfo)Game.GetSingleObjectByCustomId(“cot1”)).GetProfile());
}
im sure that all maps containing this script is a problem.
btw its a custom map(or versus maps if available)
tried copy through microsoft word and paste it to script tab but problem occurs.
thanks anyways.
btw its a profile change script (when press or trigger the script,it changes your profile body)
and btw when i use this alternative script:
public void pro13(TriggerArgs args){
IPlayer ply = (IPlayer)args.Sender;
ply.SetProfile(((IObjectPlayerProfileInfo)Game.GetSingleObjectByCustomId("pro13")).GetProfile());
}
i dont have problem with this one
Public void cot1(TriggerArgs args)
{
IPlayer immabutcher = (IPlayer)args.Sender;
immaButcher.SetProfile(((IObjectPlayerProfileInfo)Game.GetSingleObjectByCustomId(“cot1”)).GetProfile());
}
im sure that all maps containing this script is a problem.
btw its a custom map(or versus maps if available)
tried copy through microsoft word and paste it to script tab but problem occurs.
thanks anyways.
btw its a profile change script (when press or trigger the script,it changes your profile body)
and btw when i use this alternative script:
public void pro13(TriggerArgs args){
IPlayer ply = (IPlayer)args.Sender;
ply.SetProfile(((IObjectPlayerProfileInfo)Game.GetSingleObjectByCustomId("pro13")).GetProfile());
}
i dont have problem with this one
Last edited by KliPeH on Wed Aug 08, 2018 2:42 pm, edited 1 time in total.
Reason: Merged a triple-post.
Reason: Merged a triple-post.
0 x
"Spriting at it's finest"
- Gurt
- Lead Programmer
- Posts: 1884
- Joined: Sun Feb 28, 2016 3:22 pm
- Title: Lead programmer
- Started SFD: Made it!
- Location: Sweden
- Gender:
- Age: 34
The first code contains syntax errors. Ask the author of the code to fix said problems. I would have written it something like this:
Code: Select all
public void cot1(TriggerArgs args)
{
if (args.Sender is IPlayer) {
IPlayer plr = (IPlayer)args.Sender;
IObjectPlayerProfileInfo objProfileInfo = Game.GetSingleObjectByCustomID<IObjectPlayerProfileInfo>("cot1");
if (objProfileInfo != null) {
plr.SetProfile(objProfileInfo.GetProfile());
}
}
}
0 x
Gurt