Also das mit dem Code raus schmeißen bringt leider den selben Effekt wie zuvor in dem nur der zip-Name geändert wird...
Das heißt dieser Eintrag aus der LinkToGlobalScripts.lua wurde der Name der zip eingetragen (hat gestern abend funktioniert, jetzt nicht mehr).
if g_currentModName ~= "Fendt_Vario_700_SCR_pack" then
while g_currentModName ~= "Fendt_Vario_700_SCR_pack" do
print("Error");
print("Error");
end;
end;
Hab den kompletten Eintrag raus geworfen (bringt nur was wenn die zip den original Namen behält):
--**********************************************************************************************************
-- LinkToGlobalScriptsTest
--**********************************************************************************************************
function LinkToGlobalScripts:LinkToGlobalScriptsTest()
local self = g_currentMission.controlledVehicle
for n,f in pairs( LinkToGlobalScripts ) do
if type(f) == "function" and string.sub( n, 1, 4 ) == "l2gs" then
print("Calling "..tostring(n).."...")
local state, result = pcall( f, self )
if state then
print("Result of "..tostring(n)..": "..tostring(result))
else
print("Failed: "..tostring(result))
end
end
end
end
if g_currentModName ~= "Fendt_Vario_700_SCR_pack" then
while g_currentModName ~= "Fendt_Vario_700_SCR_pack" do
print("Error");
print("Error");
end;
end;
if LinkToGlobalScripts.debug then
addConsoleCommand("LinkToGlobalScriptsTest", "Call all functions of LinkToGlobalScripts", "LinkToGlobalScriptsTest", LinkToGlobalScripts);
end
In der Vario700serieV2.lua ist der Eintrag drin:
function Vario700serieV2:delete()
end;
if g_currentModName ~= "FENDT_VARIO700_SCR_COL_FS15_AGO_RC" then
while g_currentModName ~= "FENDT_VARIO700_SCR_COL_FS15_AGO_RC" do
print("Error");
print("Error");
end;
end;
function Vario700serieV2:readStream(streamId, connection)
end;
function Vario700serieV2:writeStream(streamId, connection)
end;
function Vario700serieV2:readUpdateStream(streamId, timestamp, connection)
if connection:getIsServer() then
if streamReadBool(streamId) then
end;
end;
end;
function Vario700serieV2:writeUpdateStream(streamId, connection, dirtyMask)
if not connection:getIsServer() then
if streamWriteBool(streamId, bitAND(dirtyMask, self.vehicleDirtyFlag) ~= 0) then
end;
end;
end;
function Vario700serieV2:mouseEvent(posX, posY, isDown, isUp, button)
end;
function Vario700serieV2:keyEvent(unicode, sym, modifier, isDown)
end;
function Vario700serieV2:update(dt)
Lösch ich das ganz oder nur den Teil mit den currentModName bzw trag ich da meinen zip_Namen (Fendt_Vario_700_SCR_pack) ein kommt der selbe mist mit den errors