1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Latest Dev Blog: Development Blog #1 - A new GTA:N! [April 4th, 2017]

Error Messages

Discussion in 'Scripting Help' started by Olaf, Jun 2, 2017.

  1. Olaf

    Olaf Member

    Messages:
    30
    Likes Received:
    2
    Joined:
    Dec 26, 2016
    Hello together,

    after the newest update the error messages are very bad. If somewhere in all scripts are an error, then i get always following message (indepence server setting "loglevel"):

    PHP:
    [22:16:20Error/warning while compiling script!
    [
    22:16:20Error while compiling assembly!
    [
    22:16:20startIndex darf nicht länger als die Länge der Zeichenfolge sein.
    ParameternamestartIndex
    [22:16:20]    bei System.String.Substring(Int32 startIndexInt32 length)
       
    bei GTANetworkServer.GameServer.CompileScript(String[] scriptString[] referencesBoolean vbBasic)
    [
    22:16:20mscorlib
    [22:16:20ERROR STARTING RESOURCE <MyResource>
    [
    22:16:20System.ArgumentNullExceptionDer Wert darf nicht NULL sein.
    Parameternamesource
       bei System
    .Linq.Enumerable.Select[TSource,TResult](IEnumerable`1 source, Func`2 selector)
       
    bei GTANetworkServer.GameServer.StartResource(String resourceNameString father)
    Is there a way to get better error messages?
     
  2. Coffee

    Coffee Member

    Messages:
    16
    Likes Received:
    5
    Joined:
    Jun 2, 2017
    [22:16:20] System.ArgumentNullException: Der Wert darf nicht NULL sein. Parametername: source


    is there any function where use source as a variable ?
     
  3. Olaf

    Olaf Member

    Messages:
    30
    Likes Received:
    2
    Joined:
    Dec 26, 2016
    No i have searched in my complete project..

    I think the parameter "source" is from GTA Network (System.Linq.Enumerable.Select[TSource,TResult](IEnumerable`1 source, Func`2 selector)).
     
  4. Coffee

    Coffee Member

    Messages:
    16
    Likes Received:
    5
    Joined:
    Jun 2, 2017
    do you use Linq? and can you send the part.
     
  5. Katalina

    Katalina Member Developer

    Messages:
    23
    Likes Received:
    26
    Joined:
    May 14, 2017
    You're missing one of your resource's assembly references. Check your meta.xml.
     
  6. Olaf

    Olaf Member

    Messages:
    30
    Likes Received:
    2
    Joined:
    Dec 26, 2016
    I don't think so. When i have no mistakes than no errors are coming. If I have ANY type of error (eg. Syntax wrong, ...) then i get always this message.
     
  7. Olaf

    Olaf Member

    Messages:
    30
    Likes Received:
    2
    Joined:
    Dec 26, 2016
    Non one who can help me? Its very bad to develop so, because the search of errors costs very much time...
     
  8. JohnLew

    JohnLew Member

    Messages:
    20
    Likes Received:
    4
    Joined:
    Apr 26, 2017
    Copy the new System.Xml.Linq.dll to your resource folder.
     
  9. Olaf

    Olaf Member

    Messages:
    30
    Likes Received:
    2
    Joined:
    Dec 26, 2016
    I've done it, but nothing has changed...
     
  10. JohnLew

    JohnLew Member

    Messages:
    20
    Likes Received:
    4
    Joined:
    Apr 26, 2017
    Copy that dll to all folders in resources.
     
  11. Olaf

    Olaf Member

    Messages:
    30
    Likes Received:
    2
    Joined:
    Dec 26, 2016
    I have copy the DLL to all folders, but nothing has changed. The problem is, so one can develop badly ...
     
  12. JohnLew

    JohnLew Member

    Messages:
    20
    Likes Received:
    4
    Joined:
    Apr 26, 2017
    I fixed an error like this doing that, maybe there are other problem.
    Good luck!
     
  13. Hazes

    Hazes Active Member

    Messages:
    79
    Likes Received:
    9
    Joined:
    Apr 8, 2017
    Also, if you have build your own DLL for the server, make sure you rebuild it with updated server dll's (GTANetworkShared, GTANetworkServer) and make sure your target platform is .Net Framework 4.6.2 not 4.5.2.

    Regards,
    Hazes.
     
  14. Olaf

    Olaf Member

    Messages:
    30
    Likes Received:
    2
    Joined:
    Dec 26, 2016
    I don't have a dll. I used already raw .cs-Files...
     
  15. Katalina

    Katalina Member Developer

    Messages:
    23
    Likes Received:
    26
    Joined:
    May 14, 2017
    Are you still working on this?

    I've just fixed a problem in the server that'll give better messages for this error.
     
  16. Olaf

    Olaf Member

    Messages:
    30
    Likes Received:
    2
    Joined:
    Dec 26, 2016
    I still get the same error with every error (syntax, etc.) ...
     

Share This Page