Ga naar inhoud


Foto

Montana Mod v2.1 (In Development)


  • Please log in to reply
3199 replies to this topic

#3001 miniboy349

miniboy349

    Captain

  • Members
  • 240 Posts:
  • Gender:Male

Gepost 07 juni 2015 - 06:42

i did not find out where you posted bugs please give me a link and where it is known bugs :/



#3002 EpicPotatos

EpicPotatos

    Firefighter

  • Members
  • 13 Posts:
  • Gender:Male

Gepost 09 juni 2015 - 07:09

i did not find out where you posted bugs please give me a link and where it is known bugs :/

Go into your montana mod file, and there should be a Bug Report form, fill it out and send it to the supplied email address along with your logfile.


Supporter.png


#3003 kyleio

kyleio

    Lieutenant

  • Members
  • 46 Posts:
  • Gender:Male
  • Location:Rotterdam

Gepost 21 juni 2015 - 05:44

When does the patch comes out to fix the bugs?



#3004 gunswat

gunswat

    Assistant Chief

  • Members
  • 2213 Posts:
  • Gender:Male
  • Location:Scotland
  • Interests:Computer and console gaming,watching youtube and playing and testing emergency 4 mods mainly.

Gepost 21 juni 2015 - 05:57

Best not to ask those questions here.

#3005 Olympus1492

Olympus1492

    Lieutenant

  • Members
  • 46 Posts:

Gepost 22 juni 2015 - 03:13

Has anyone discovered the source of the terminal lag with this mod? I've yet to find the source, though I'd like to try and fix it if anyone can help point me in a good direction.



#3006 TacticalRooster22

TacticalRooster22

    Battalion Chief

  • Members
  • 633 Posts:
  • Gender:Male
  • Location:Schererville, Indiana, USA
  • Interests:911FR, life, music, and firefighting stuff.

Gepost 22 juni 2015 - 04:47

Has anyone discovered the source of the terminal lag with this mod? I've yet to find the source, though I'd like to try and fix it if anyone can help point me in a good direction.

They said that a fix will hopefully be in the next patch.  I believe that the team has found the issue, but correct if I'm wrong...


new-fan-1.png

Join http://ertrpg.com and beecome part in a fun emergency roleplay!


#3007 the wolfhunter

the wolfhunter

    Lieutenant

  • Members
  • 90 Posts:
  • Gender:Male
  • Location:Israel

Gepost 22 juni 2015 - 03:36

Does anyone know if the next patch will have a MPVFD water tanker unit?



#3008 bama1234

bama1234

    Battalion Chief

  • Member
  • 784 Posts:
  • Gender:Male
  • Location:United States
  • Interests:EM4 modding, graphic design, exploring the great outdoors, EMS & rescue

Gepost 22 juni 2015 - 07:14

Has anyone discovered the source of the terminal lag with this mod? I've yet to find the source, though I'd like to try and fix it if anyone can help point me in a good direction.

 

We think it might possibly be coming from the unit or command icons, for whatever reason, if you want to start there.

 

Does anyone know if the next patch will have a MPVFD water tanker unit?

Probably not.

 

When does the patch comes out to fix the bugs?

TBA. Probably a matter of a few months.


hiqooAT.gif

EMT

Rescue Squad Member


#3009 Olympus1492

Olympus1492

    Lieutenant

  • Members
  • 46 Posts:

Gepost 23 juni 2015 - 12:48

We think it might possibly be coming from the unit or command icons, for whatever reason, if you want to start there.

 

 

I think there must be an object on the map with unreasonable physics or something; it's just a matter of locating it. I decided to do a little experiment by removing all the units and GUI that you had created and replacing it with LA MOD units, GUI and specs just to see what would happen. When I did this, I no longer got lag while clicking the vehicles, however the lag did terminally seem to get worse as if a loop of some kind was generating gradually tougher problems for the computer to solve, which led me to believe it was one of two things: A bugged object in the map somewhere with unreasonable physics, or a broken "FOR" loop in one of the custom scripts, though I've yet to confirm either one of my theories. If I'm able to solve the issue, am I free to release whatever files does the trick?



#3010 itchboy

itchboy

    Assistant Chief

  • Member
  • 1788 Posts:
  • Gender:Not Telling

Gepost 23 juni 2015 - 12:52

I think there must be an object on the map with unreasonable physics or something; it's just a matter of locating it. I decided to do a little experiment by removing all the units and GUI that you had created and replacing it with LA MOD units, GUI and specs just to see what would happen. When I did this, I no longer got lag while clicking the vehicles, however the lag did terminally seem to get worse as if a loop of some kind was generating gradually tougher problems for the computer to solve, which led me to believe it was one of two things: A bugged object in the map somewhere with unreasonable physics, or a broken "FOR" loop in one of the custom scripts, though I've yet to confirm either one of my theories. If I'm able to solve the issue, am I free to release whatever files does the trick?

Yes.

 

When does the patch comes out to fix the bugs?

If the moderators see this, they might give you a warning point for asking for a release date. Please be warned.



#3011 bama1234

bama1234

    Battalion Chief

  • Member
  • 784 Posts:
  • Gender:Male
  • Location:United States
  • Interests:EM4 modding, graphic design, exploring the great outdoors, EMS & rescue

Gepost 23 juni 2015 - 01:01

am I free to release whatever files does the trick?

Yes.

 

Only after you run it through me first for approval. 

 

Those are all interesting theories and definitely possible, things we're looking in to. 


hiqooAT.gif

EMT

Rescue Squad Member


#3012 itchboy

itchboy

    Assistant Chief

  • Member
  • 1788 Posts:
  • Gender:Not Telling

Gepost 23 juni 2015 - 01:03

Only after you run it through me first for approval. 

 

Those are all interesting theories and definitely possible, things we're looking in to. 

Oopsie. Forgot. Its gotta go through the both of us first.



#3013 EmergencyFan97

EmergencyFan97

    Senior Captain

  • Members
  • 430 Posts:
  • Gender:Male
  • Location:South Carolina, United States

Gepost 23 juni 2015 - 03:06

Hey bama and itchboy, this was posted on an Emergency 4 facebook fan group. I thought you guys would like to see it.
 

just got the Montana mod I love the crap outa it it's so realistic reminds me of my hometown paged the guys to the station and I thought my pager was going off they both have the same tones

Posted Image

#3014 Olympus1492

Olympus1492

    Lieutenant

  • Members
  • 46 Posts:

Gepost 23 juni 2015 - 03:46

Yes.

 

If the moderators see this, they might give you a warning point for asking for a release date. Please be warned.

 

 

Only after you run it through me first for approval. 

 

Those are all interesting theories and definitely possible, things we're looking in to. 

 

mwgUyYE.png

MTVolunteerScript.script

 

Not too familiar with C++, but if it's anything like Python, Java, or JavaScript, there needs to be an integer setting and a variable that's announced to the script before the semi-colon in the beginning of the statement.

 

E.g: for (int i=0; i < MAX_VOL; i++) 

 

Honestly haven't got the foggiest idea if that'd be the problem, but it's worth the exploration. 



#3015 itchboy

itchboy

    Assistant Chief

  • Member
  • 1788 Posts:
  • Gender:Not Telling

Gepost 23 juni 2015 - 03:48

mwgUyYE.png

MTVolunteerScript.script

 

Not too familiar with C++, but if it's anything like Python, Java, or JavaScript, there needs to be an integer setting and a variable that's announced to the script before the semi-colon in the beginning of the statement.

 

E.g: for (int i=0; i < MAX_VOL; i++) 

 

Honestly haven't got the foggiest idea if that'd be the problem, but it's worth the exploration. 

Hmmm..in our C++ classes, we were told that we didnt need to include a initial value if we already had the integer value or counter declared already.

 

The counter in that loop has already been defined as a global variable so re declaring it in the loop would mess it up each time the loop was entered.

 

Lets keep this public so that we can "crowdfund" the fix for the mod and bring out some of the talented scripters on the site.


Deze post is bewerkt door randomperson139: 25 juni 2015 - 04:31
Language removed. Please avoid in future.


#3016 Olympus1492

Olympus1492

    Lieutenant

  • Members
  • 46 Posts:

Gepost 23 juni 2015 - 04:10

Hmmm..in our C++ classes, we were told that we didnt need to include a initial value if we already had the integer value or counter declared already.

 

The counter in that loop has already been defined as a global variable so re declaring it in the loop would mess it up each time the loop was entered.

 

Lets keep this public so that we can "crowdfund" the fix for the mod and bring out some of the talented scripters on the site.

Ahh, that makes sense. Does the semi-colon still need to be there in C++? Usually that's used to end a statement, seems like that could equally mess the thing and make it confused. I figure it almost has got to be a for loop causing the terminal lag because when playing the mod, the lag worsens with time, it's not just always bad, so it seems like it must be something that duplicates with time, such as a botched for loop. Though, there are so many scripts it's really hard to tell where it's coming from... I'm thinking my next test will be process of elimination, I'll take one of the custom scripts out each time I run it and see what happens. It'll take time though lol.


Deze post is bewerkt door randomperson139: 25 juni 2015 - 04:31
Again, language removed.


#3017 itchboy

itchboy

    Assistant Chief

  • Member
  • 1788 Posts:
  • Gender:Not Telling

Gepost 23 juni 2015 - 04:30

Ahh, that makes sense. Does the semi-colon still need to be there in C++? Usually that's used to end a statement, seems like that could equally mess the thing and make it confused. I figure it almost has got to be a for loop causing the terminal lag because when playing the mod, the lag worsens with time, it's not just always bad, so it seems like it must be something that duplicates with time, such as a botched for loop. Though, there are so many scripts it's really hard to tell where it's coming from... I'm thinking my next test will be process of elimination, I'll take one of the custom scripts out each time I run it and see what happens. It'll take time though lol.

There are several custom scripts running in the mod. One, you have the Stop sign script, the other is the night sound script, third is the fire hydrant script. Two of those are by bma, the hydrant is by me. Try checking those because those are the most likely suspects.

 

In Em4, if a loop in a script such as the one you posted does not terminate, the game crashes. Stack overflow I guess.



#3018 FInn Rescue 12

FInn Rescue 12

    Battalion Chief

  • Members
  • 768 Posts:
  • Gender:Male

Gepost 27 juni 2015 - 04:07

Also check this issue with ATF person I found this in the log file playing the game. CTD when tried the AFT unit. 

 

 

|Model contains 3666 vertices, 1536 polygons, 20 bones, 0 muscleanimframes

?ERROR: Unassigned vertex 367 found in dynamic model mod:Models\Persons\03 LA Police\atf_agent. 

?ERROR: Unassigned vertex 3659 found in dynamic model mod:Models\Persons\03 LA Police\atf_agent.

?ERROR: Unassigned vertex 3660 found in dynamic model mod:Models\Persons\03 LA Police\atf_agent.

?ERROR: Unassigned vertex 3661 found in dynamic model mod:Models\Persons\03 LA Police\atf_agent.

?ERROR: Unassigned vertex 3662 found in dynamic model mod:Models\Persons\03 LA Police\atf_agent.

?ERROR: Unassigned vertex 3663 found in dynamic model mod:Models\Persons\03 LA Police\atf_agent.

?ERROR: Unassigned vertex 3664 found in dynamic model mod:Models\Persons\03 LA Police\atf_agent.

?ERROR: Unassigned vertex 3665 found in dynamic model mod:Models\Persons\03 LA Police\atf_agent.

?ERROR: Unassigned vertex 3666 found in dynamic model mod:Models\Persons\03 LA Police\atf_agent.

|Fixing invalid blended vertex weightings for model mod:Models\Persons\03 LA Police\atf_agent!

 

 

 


Whats up!  

 

 

 

 

 

 

 

 

post-14435-0-36443700-1362212507.jpg

 

 

 

 

 


#3019 MountainMan90

MountainMan90

    Firefighter

  • Members
  • 11 Posts:

Gepost 27 juni 2015 - 04:10

There are several custom scripts running in the mod. One, you have the Stop sign script, the other is the night sound script, third is the fire hydrant script. Two of those are by bma, the hydrant is by me. Try checking those because those are the most likely suspects.

 

In Em4, if a loop in a script such as the one you posted does not terminate, the game crashes. Stack overflow I guess.

 

Lines: 380 -> 461 in the script: "MTVolunteerScript"

 


if(ChildID == 0)
{
if(p.HasName(NAME_PERSON01))
{
VehicleList vl1(NAME_CAR01);
for(int j=0; j < vl1.GetNumVehicles(); j++)
{
car = vl1.GetVehicle(j);
}
}
else if(p.HasName(NAME_PERSON02))
{
VehicleList vl2(NAME_CAR02);
for(int j=0; j < vl2.GetNumVehicles(); j++)
{
car = vl2.GetVehicle(j);
}
}
else if(p.HasName(NAME_PERSON03))
{
VehicleList vl3(NAME_CAR03);
for(int j=0; j < vl3.GetNumVehicles(); j++)
{
car = vl3.GetVehicle(j);
}
}
else if(p.HasName(NAME_PERSON04))
{
VehicleList vl4(NAME_CAR04);
for(int j=0; j < vl4.GetNumVehicles(); j++)
{
car = vl4.GetVehicle(j);
}
}
else if(p.HasName(NAME_PERSON05))
{
VehicleList vl5(NAME_CAR05);
for(int j=0; j < vl5.GetNumVehicles(); j++)
{
car = vl5.GetVehicle(j);
}
}
else if(p.HasName(NAME_PERSON06))
{
VehicleList vl6(NAME_CAR06);
for(int j=0; j < vl6.GetNumVehicles(); j++)
{
car = vl6.GetVehicle(j);
}
}
else if(p.HasName(NAME_PERSON07))
{
VehicleList vl7(NAME_CAR07);
for(int j=0; j < vl7.GetNumVehicles(); j++)
{
car = vl7.GetVehicle(j);
}
}
else if(p.HasName(NAME_PERSON08))
{
VehicleList vl8(NAME_CAR08);
for(int j=0; j < vl8.GetNumVehicles(); j++)
{
car = vl8.GetVehicle(j);
}
}
else if(p.HasName(NAME_PERSON09))
{
VehicleList vl9(NAME_CAR09);
for(int j=0; j < vl9.GetNumVehicles(); j++)
{
car = vl9.GetVehicle(j);
}
}
else if(p.HasName(NAME_PERSON10))
{
VehicleList vl10(NAME_CAR10);
for(int j=0; j < vl10.GetNumVehicles(); j++)
{
car = vl10.GetVehicle(j);
}
}
[/QUOTE]
It looks as if its continuously cycling and once the condition is met, for example car = vl10.GetVehicle(j) it doesn't break the loop. Although, I haven't looked at the memory usage during the time when this script is called, I suspect this is probably the/one of the issues.


#3020 itchboy

itchboy

    Assistant Chief

  • Member
  • 1788 Posts:
  • Gender:Not Telling

Gepost 27 juni 2015 - 04:14

Lines: 380 -> 461 in the script: "MTVolunteerScript"

Hmmm...sounds like a possibilty, because it constantly declares the Vehicle variable "car" each time the loop iterates. It makes use of the same variable all through out for sake of not having to create 10 different variables. The number of VehicleLists is also another possibilty since the game has to search for the specific vehicle x number of times depending on how many persons of those are present on map.