Benevolence Posted September 7, 2011 Share Posted September 7, 2011 addEventHandler('onClientResourceStart', resourceRoot, function() dfk = engineLoadTXD ( "lossantosroads.txd" ) engineImportTXD ( dfk, 3995 ) engineImportTXD ( dfk, 4694 ) engineImportTXD ( dfk, 5021 ) engineImportTXD ( dfk, 4835 ) engineImportTXD ( dfk, 5028 ) engineImportTXD ( dfk, 4820 ) engineImportTXD ( dfk, 4868 ) engineImportTXD ( dfk, 5124 ) engineImportTXD ( dfk, 5297 ) engineImportTXD ( dfk, 5113 ) engineImportTXD ( dfk, 5120 ) engineImportTXD ( dfk, 5133 ) engineImportTXD ( dfk, 5106 ) engineImportTXD ( dfk, 5472 ) engineImportTXD ( dfk, 5512 ) engineImportTXD ( dfk, 17675 ) engineImportTXD ( dfk, 17655 ) engineImportTXD ( dfk, 6114 ) engineImportTXD ( dfk, 5751 ) engineImportTXD ( dfk, 6333 ) engineImportTXD ( dfk, 13882 ) end ) I get an error in debugscript which says "Bad 'txd' pointer' @ 'engineImportTXD'(1)" on like all the lines almost. How do I fix this? Link to comment
Benevolence Posted September 7, 2011 Author Share Posted September 7, 2011 Also, I noticed that anyone who joins the server can "start, stop and restart" resources via F8 console. What in the hell? Here's my ACL I really don't know why. Hope someone can fix it: "Everyone"> "Default"/> "user.*"/> "resource.*"/> "resource.ucp"/> "Moderator"> "Moderator"/> "resource.mapcycler"/> "resource.mapmanager"/> "resource.resourcemanager"/> "resource.votemanager"/> "SuperModerator"> "Moderator"/> "SuperModerator"/> "Admin"> "Moderator"/> "SuperModerator"/> "Admin"/> "RPC"/> "resource.admin"/> "resource.webadmin"/> "user.Taco" /> "resource.account-system"/> "resource.achievement-system"/> "resource.admin-system"/> "resource.animation-system"/> "resource.anticheat-system"/> "resource.bank-system"/> "resource.carlist-system"/> "resource.carshop-system"/> "resource.camera-system"/> "resource.chat-system"/> "resource.computers-system"/> "resource.elevator-system"/> "resource.faction-system"/> "resource.fuel-system"/> "resource.gate-system"/> "resource.global"/> "resource.help-system"/> "resource.id-system"/> "resource.interior-system"/> "resource.irc"/> "resource.item-system"/> "resource.job-system"/> "resource.license-system"/> "resource.lves-system"/> "resource.lvpd-system"/> "resource.map-system"/> "resource.mysql-system"/> "resource.object-system"/> "resource.paynspray-system"/> "resource.phone-system"/> "resource.realism-system"/> "resource.realtime-system"/> "resource.report-system"/> "resource.resource-keeper"/> "resource.saveplayer-system"/> "resource.savevehicle-system"/> "resource.scoreboard-system"/> "resource.shop-system"/> "resource.spike-system"/> "resource.statistics-system"/> "resource.startup"/> "resource.tag-system"/> "resource.vehicle-system"/> "resource.valhallashield"/> "resource.weather-system"/> "resource.res-edit"/> "Console"> "Moderator"/> "SuperModerator"/> "Admin"/> "RPC"/> "user.Console"/> "RPC"> "RPC"/> "MapEditor"> "MapEditor"/> "resource.medit"/> "resource.editor_main"/> "resource.edf"/> "raceACLGroup"> "raceACL"/> "resource.race"/> "Owner"> "general.ModifyOtherObjects" access="false"/> "general.http" access="false"/> "command.start" access="false"/> "command.stop" access="false"/> "command.stopall" access="false"/> "command.gamemode" access="false"/> "command.changemode" access="false"/> "command.changemap" access="false"/> "command.stopmode" access="false"/> "command.stopmap" access="false"/> "command.skipmap" access="false"/> "command.restart" access="false"/> "command.refresh" access="false"/> "command.addaccount" access="false"/> "command.delaccount" access="false"/> "command.debugscript" access="true"/> "command.chgpass" access="false"/> "command.mute" access="false"/> "command.unmute" access="false"/> "command.kick" access="false"/> "command.ban" access="false"/> "command.banip" access="false"/> "command.unbanip" access="false"/> "command.shutdown" access="false"/> "command.install" access="false"/> "command.whois" access="false"/> "command.whowas" access="false"/> "command.aexec" access="false"/> "function.executeCommandHandler" access="false"/> "function.setPlayerMuted" access="false"/> "function.addAccount" access="false"/> "function.removeAccount" access="false"/> "function.setAccountPassword" access="false"/> "function.kickPlayer" access="false"/> "function.banIP" access="false"/> "function.banPlayer" access="false"/> "function.banSerial" access="false"/> "function.getBansXML" access="false"/> "function.unbanIP" access="false"/> "function.unbanSerial" access="false"/> "function.getClientIP" access="false"/> "function.setServerPassword" access="false"/> "function.getServerPassword" access="false"/> "function.callRemote" access="false"/> "function.startResource" access="false"/> "function.stopResource" access="false"/> "function.restartResource" access="false"/> "function.createResource" access="false"/> "function.copyResource" access="false"/> "function.addResourceMap" access="false"/> "function.addResourceConfig" access="false"/> "function.removeResourceFile" access="false"/> "function.setResourceDefaultSetting" access="false"/> "function.removeResourceDefaultSetting" access="false"/> "function.aclReload" access="false"/> "function.aclSave" access="false"/> "function.aclCreate" access="false"/> "function.aclDestroy" access="false"/> "function.aclSetRight" access="false"/> "function.aclRemoveRight" access="false"/> "function.aclCreateGroup" access="false"/> "function.aclDestroyGroup" access="false"/> "function.aclGroupAddACL" access="false"/> "function.aclGroupRemoveACL" access="false"/> "function.aclGroupAddObject" access="false"/> "function.aclGroupRemoveObject" access="false"/> "Moderator"> "general.ModifyOtherObjects" access="false"/> "command.start" access="true"/> "command.stop" access="true"/> "command.stopall" access="true"/> "command.gamemode" access="true"/> "command.changemode" access="true"/> "command.changemap" access="true"/> "command.stopmode" access="true"/> "command.stopmap" access="true"/> "command.skipmap" access="true"/> "command.restart" access="true"/> "command.mute" access="true"/> "command.unmute" access="true"/> "command.kick" access="true"/> "command.ban" access="true"/> "command.banip" access="true"/> "command.unbanip" access="true"/> "command.whois" access="true"/> "command.whowas" access="true"/> "function.setPlayerMuted" access="true"/> "function.kickPlayer" access="true"/> "function.banIP" access="true"/> "function.banPlayer" access="true"/> "function.banSerial" access="true"/> "function.getBansXML" access="true"/> "function.unbanIP" access="true"/> "function.unbanSerial" access="true"/> "function.getClientIP" access="true"/> "function.startResource" access="true"/> "function.stopResource" access="true"/> "function.restartResource" access="true"/> "SuperModerator"> "general.ModifyOtherObjects" access="false"/> "command.refresh" access="true"/> "command.addaccount" access="true"/> "command.delaccount" access="true"/> "command.chgpass" access="true"/> "function.addAccount" access="true"/> "function.removeAccount" access="true"/> "function.setAccountPassword" access="true"/> "Admin"> "general.ModifyOtherObjects" access="true"/> "general.http" access="true"/> "command.shutdown" access="false"/> "command.aexec" access="true"/> "command.install" access="true"/> "command.debugscript" access="true"/> "command.refresh" access="true"/> "function.executeCommandHandler" access="true"/> "function.setServerPassword" access="true"/> "function.getServerPassword" access="true"/> "function.createResource" access="true"/> "function.copyResource" access="true"/> "function.addResourceMap" access="true"/> "function.addResourceConfig" access="true"/> "function.removeResourceFile" access="true"/> "function.setResourceDefaultSetting" access="true"/> "function.removeResourceDefaultSetting" access="true"/> "function.aclReload" access="true"/> "function.aclSave" access="true"/> "function.aclCreate" access="true"/> "function.aclDestroy" access="true"/> "function.aclSetRight" access="true"/> "function.aclRemoveRight" access="true"/> "function.aclCreateGroup" access="true"/> "function.aclDestroyGroup" access="true"/> "function.aclGroupAddACL" access="true"/> "function.aclGroupRemoveACL" access="true"/> "function.aclGroupAddObject" access="true"/> "function.aclGroupRemoveObject" access="true"/> "Default"> "command.shutdown" access="false"/> "command.aexec" access="false"/> "command.debugscript" access="false"/> "command.refresh" access="false"/> "function.executeCommandHandler" access="true"/> "function.aclReload" access="false"/> "function.aclSave" access="false"/> "function.aclCreate" access="false"/> "function.aclDestroy" access="false"/> "function.aclSetRight" access="false"/> "function.aclRemoveRight" access="false"/> "function.aclCreateGroup" access="false"/> "function.aclDestroyGroup" access="false"/> "function.aclGroupAddACL" access="false"/> "function.aclGroupRemoveACL" access="false"/> "function.aclGroupAddObject" access="false"/> "function.aclGroupRemoveObject" access="false"/> "RPC"> "function.callRemote" access="true"/> "MapEditor"> "general.ModifyOtherObjects" access="true"/> "function.startResource" access="true"/> "function.stopResource" access="true"/> "function.restartResource" access="true"/> "function.createResource" access="true"/> "function.copyResource" access="true"/> "function.addResourceMap" access="true"/> "function.addResourceConfig" access="true"/> "function.removeResourceFile" access="true"/> "function.setResourceDefaultSetting" access="true"/> "function.removeResourceDefaultSetting" access="true"/> "function.xmlLoadFile" access="true"/> "raceACL"> "general.ModifyOtherObjects" access="true"/> "function.xmlLoadFile" access="true"/> Link to comment
Baseplate Posted September 7, 2011 Share Posted September 7, 2011 in Default ACL should be False?? cause I remmeber that the default have it all false Link to comment
TAPL Posted September 7, 2011 Share Posted September 7, 2011 Part of the Default acl are missing "Default"> "general.ModifyOtherObjects" access="false"/> "general.http" access="false"/> "command.start" access="false"/> "command.stop" access="false"/> "command.stopall" access="false"/> "command.gamemode" access="false"/> "command.changemode" access="false"/> "command.changemap" access="false"/> "command.stopmode" access="false"/> "command.stopmap" access="false"/> "command.skipmap" access="false"/> "command.restart" access="false"/> "command.refresh" access="false"/> "command.refreshall" access="false"/> "command.addaccount" access="false"/> "command.delaccount" access="false"/> "command.debugscript" access="false"/> "command.chgpass" access="false"/> "command.loadmodule" access="false"/> "command.upgrade" access="false"/> "command.mute" access="false"/> "command.crun" access="false"/> "command.srun" access="false"/> "command.run" access="false"/> "command.unmute" access="false"/> "command.kick" access="false"/> "command.ban" access="false"/> "command.banip" access="false"/> "command.unbanip" access="false"/> "command.shutdown" access="false"/> "command.install" access="false"/> "command.aexec" access="false"/> "command.whois" access="false"/> "command.whowas" access="false"/> "function.executeCommandHandler" access="false"/> "function.setPlayerMuted" access="false"/> "function.addAccount" access="false"/> "function.addBan" access="false"/> "function.removeBan" access="false"/> "function.removeAccount" access="false"/> "function.setAccountPassword" access="false"/> "function.kickPlayer" access="false"/> "function.banIP" access="false"/> "function.banPlayer" access="false"/> "function.banSerial" access="false"/> "function.getBansXML" access="false"/> "function.unbanIP" access="false"/> "function.unbanSerial" access="false"/> "function.getClientIP" access="false"/> "function.setServerPassword" access="false"/> "function.getServerPassword" access="false"/> "function.callRemote" access="false"/> "function.startResource" access="false"/> "function.stopResource" access="false"/> "function.restartResource" access="false"/> "function.createResource" access="false"/> "function.copyResource" access="false"/> "function.addResourceMap" access="false"/> "function.addResourceConfig" access="false"/> "function.removeResourceFile" access="false"/> "function.setResourceDefaultSetting" access="false"/> "function.removeResourceDefaultSetting" access="false"/> "function.redirectPlayer" access="false"/> "function.aclReload" access="false"/> "function.aclSave" access="false"/> "function.aclCreate" access="false"/> "function.aclDestroy" access="false"/> "function.aclSetRight" access="false"/> "function.aclRemoveRight" access="false"/> "function.aclCreateGroup" access="false"/> "function.aclDestroyGroup" access="false"/> "function.aclGroupAddACL" access="false"/> "function.aclGroupRemoveACL" access="false"/> "function.aclGroupAddObject" access="false"/> "function.aclGroupRemoveObject" access="false"/> "function.refreshResources" access="false"/> "function.setServerConfigSetting" access="false" /> Link to comment
Baseplate Posted September 7, 2011 Share Posted September 7, 2011 yea TAPL is right you should use the engineImportTXD like this bool engineImportTXD ( txd texture, int model_id ) Link to comment
TAPL Posted September 7, 2011 Share Posted September 7, 2011 make sure the filepath of the txd file are not wrong and make sure it's added on meta.xml dfk = engineLoadTXD ( "lossantosroads.txd" ) Link to comment
Baseplate Posted September 7, 2011 Share Posted September 7, 2011 like if you have it in another Folder in that resource so foldername/filename Link to comment
Benevolence Posted September 7, 2011 Author Share Posted September 7, 2011 yea TAPL is right you should use the engineImportTXD like this bool engineImportTXD ( txd texture, int model_id ) So for example engineImportTXD ( dfk, 3995 ) would become bool engineImportTXD ( dfk, 3995 ) ? Link to comment
JR10 Posted September 7, 2011 Share Posted September 7, 2011 No. Are you sure the path is correct, and it's in the meta.xml? Link to comment
Benevolence Posted September 7, 2011 Author Share Posted September 7, 2011 No.Are you sure the path is correct, and it's in the meta.xml? For some odd reason the .txd file wasn't in the folder and it wasn't even in the meta.xml - I've added the file into the folder and into the meta.xml - I restarted the resource and on debugscript 3 it didn't show that error, but if the problem still exists I'll reply back. Thanks. Also the thing with acl is fixed, thanks. Link to comment
Benevolence Posted September 7, 2011 Author Share Posted September 7, 2011 I don't understand why these problems pop up, I guess it's the update from 1.0.5 to 1.1 and conversion from Linux server to Windows. dxDrawText(getPlayerNametagText(player), sx-offset+2, sy+2, (sx-offset)+130 / distance, sy+20 / distance, tocolor(0, 0, 0, 220), scale, font, "center", "middle", false, false, false) dxDrawText(getPlayerNametagText(player), sx-offset, sy, (sx-offset)+130 / distance, sy+20 / distance, tocolor(r, g, b, 220), scale, font, "center", "middle", false, false, false) On debugscript 3 it gives a Warning which says the same thing for the two lines (and others but they're practically the same so no need to post all I think) Bad argument @ 'dxDrawText'[Expected vertical-aling at argument 10, got string 'middle'] And another in another resources, posting in a sec.. Link to comment
JR10 Posted September 7, 2011 Share Posted September 7, 2011 Middle? Should be centre: dxDrawText(getPlayerNametagText(player), sx-offset, sy, (sx-offset)+130 / distance, sy+20 / distance, tocolor(r, g, b, 220), scale, font, "center", "center", false, false, false) Link to comment
Benevolence Posted September 7, 2011 Author Share Posted September 7, 2011 Middle?Should be centre: dxDrawText(getPlayerNametagText(player), sx-offset, sy, (sx-offset)+130 / distance, sy+20 / distance, tocolor(r, g, b, 220), scale, font, "center", "center", false, false, false) Changed it and I guess it's fixed. Now a new error popped up I have no idea why really. Must be 1.1 local collision, cx, cy, cz, element = processLineOfSight(lx, ly, lz, rx, ry, rz+1, true, true, true, true, false, false, true, false, vehicle) Bad argument @ 'processLineOfSight' [Expected entity at argument 15, got boolean] Also have this error in another .lua file which is in the same resource and isLineOfSightClear https://wiki.multitheftauto.com/wiki/ProcessLineOfSight Link to comment
Castillo Posted September 8, 2011 Share Posted September 8, 2011 You are using 'vehicle' argument, but the player will not be always in one, so you should do this instead: local collision, cx, cy, cz, element = processLineOfSight(lx, ly, lz, rx, ry, rz+1, true, true, true, true, false, false, true, false, vehicle or player) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now