Skip to content

Error on step 4 #45

Description

@REALalphas

Files from osz archive exported from osu!lazer. Unpacked and used .osu and .mp3 files.
image

TypeError: Cannot read property '1' of null
    at parseDiffdata (/content/osumapper/v7.0/load_map.js:79:81)
    at load_map (/content/osumapper/v7.0/load_map.js:676:15)
    at main (/content/osumapper/v7.0/load_map.js:1396:24)
    at Object.<anonymous> (/content/osumapper/v7.0/load_map.js:1484:1)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
    at internal/main/run_main_module.js:17:47

---------------------------------------------------------------------------
Exception                                 Traceback (most recent call last)
[<ipython-input-23-994af1dafd16>](https://localhost:8080/#) in <cell line: 3>()
      1 from act_newmap_prep import *
      2 
----> 3 step4_read_new_map(uploaded_osu_name);

2 frames
[/content/osumapper/v7.0/act_newmap_prep.py](https://localhost:8080/#) in step4_read_new_map(file_path, divisor)
     26 
     27     start = time.time()
---> 28     read_and_save_osu_tester_file(file_path.strip(), filename="mapthis", divisor=divisor);
     29     end = time.time()

[/content/osumapper/v7.0/audio_tools.py](https://localhost:8080/#) in read_and_save_osu_tester_file(path, filename, json_name, divisor)
    201 
    202 def read_and_save_osu_tester_file(path, filename = "saved", json_name="mapthis.json", divisor=4):
--> 203     osu_dict, wav_file = read_osu_file(path, convert = True, json_name=json_name);
    204     sig, samplerate = librosa.load(wav_file, sr=None, mono=True);
    205     file_len = (sig.shape[0] / samplerate * 1000 - 3000);

[/content/osumapper/v7.0/audio_tools.py](https://localhost:8080/#) in read_osu_file(path, convert, wav_name, json_name)
     36     if(len(result) > 1):
     37         print(result.decode("utf-8"));
---> 38         raise Exception("Map Convert Failure");
     39 
     40     with open(json_name, encoding="utf-8") as map_json:

Exception: Map Convert Failure

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions